Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » Problem changing layouts in ISelectionChangedListener
Problem changing layouts in ISelectionChangedListener [message #588268] Wed, 01 January 2003 19:19
Eclipse UserFriend
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);
Previous Topic:Problem changing layouts in ISelectionChangedListener
Next Topic:Eclipse won't launch on MacOSX
Goto Forum:
  


Current Time: Thu Apr 25 06:39:15 GMT 2024

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

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

Back to the top