Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Composite Added; Resize Fails
Composite Added; Resize Fails [message #484959] Wed, 09 September 2009 22:54
Geoffry Roberts is currently offline Geoffry RobertsFriend
Messages: 71
Registered: July 2009
Member
All,

Can any on point me toward a solution?

My RCP app works until I add a composite to one of the views, then
everything works until I resize. It acts as if its hung and seems to stop
painting. The views within the app are all still functional. There is no
editor, just views. I can min/max the app. I cannot rezize it. If I
restart the app, it works properly with the newly added composite.
Everything including resize works--until I add another composite.

The composite in question is being added to a ScrolledComposite. It is
added as the result of closing a modal dialog that is based on jface's
Dialog.

When the dialog closes, I re-compute sizes and pack as follows:

obc = Composite being added.
comp = The required Composite inside the ScrolledComposite.
scpOutbreaks = The ScrolledComposite.
parent = The composite that contains ScrolledComposite and a host of other
widgets.

Code snippet:

obc.setSize(obc.computeSize(SWT.DEFAULT, SWT.DEFAULT, true));
comp.setSize(comp.computeSize(SWT.DEFAULT, SWT.DEFAULT,
true)); scpOutbreaks.setSize(scpOutbreaks.computeSize(SWT.DEFAULT,
SWT.DEFAULT, true));
parent.setSize(parent.computeSize(SWT.DEFAULT, SWT.DEFAULT, true));
parent.pack();
Previous Topic:How to cancel Build
Next Topic:Update site categories missing / feature dependencies broken
Goto Forum:
  


Current Time: Mon Sep 23 01:44:27 GMT 2024

Powered by FUDForum. Page generated in 0.03922 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top