how to prevent statusbar resize [message #328124] |
Wed, 14 May 2008 11:51 |
Eclipse User |
|
|
|
Originally posted by: jamesk.google.com
Hi,
I have a composite with several buttons and labels. This composite is
added to statusbar as a contribution item. In the fill method, I did the
following:
public void fill( Composite parent )
{
super.fill( parent );
MyComposite composite = new MyComposite( parent,
SWT.NO_REDRAW_RESIZE );
......
}
When user resizes main window, I want to prevent the resizing of the above
composite. The problem is: every time main window is expanded, the sizes
of child widgets remain the same while the height of the composite is
increased significantly. I guess this is making the height of status bar
bigger, thus making it look ugly.
I am wondering how I can prevent this composite contribution from resizing?
regards,
|
|
|
Powered by
FUDForum. Page generated in 0.02800 seconds