Problem changing layouts in ISelectionChangedListener [message #588268] |
Wed, 01 January 2003 19:19 |
Eclipse User |
|
|
|
Originally posted by: nkeclipse.iyago.com
Hi,
I am having trouble dynamicly resizing controls inside my
ISelectionChangedListener.selectionChanged() method
What I want to do is resize two controls based on the user selection of an
item in a seperate tree control
What happens is the GUI does not update correctly, BUT if I manually resize
the window (with the mouse) then I see the correct updates. This makes me
believe that I am somehow not telling the system to force an update
correctly
<snippet>
mLeftGroup, mRightGroup, and mMidGroup are children of mTopGroup
I am using ForLayout
// blah blah
mDaLabel.setText(mRipper.queryProcedureBody(treeObj.getName( )));
FormData fd = (FormData) mLeftGroup.getLayoutData();
fd.right.numerator = 20;
mLeftGroup.setLayoutData(fd);
fd = (FormData) mMidGroup.getLayoutData();
fd.right.numerator = 80;
mMidGroup.setLayoutData(fd);
fd = (FormData) mRightGroup.getLayoutData();
fd.right.numerator = 100;
mRightGroup.setLayoutData(fd);
mTopGroup.pack(true);
|
|
|
Powered by
FUDForum. Page generated in 0.03618 seconds