Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » resize composite inside a scrolled composite
resize composite inside a scrolled composite [message #454341] Wed, 20 April 2005 19:34 Go to next message
Eva is currently offline EvaFriend
Messages: 1
Registered: July 2009
Junior Member
Hi,
I have a scrolled composite (scrolledComposite) whose content is a
composite (contentComposite). In my code I sometimes need to redraw
contentComposite which might change the vertical size of contentComposite.
However scrolledComposite doesn't pick up the change in size of
contentComposite , and the scrolling bars are not ajdusted properly. As a
result part of the contentComposite is cut off.

Please help if you have any ideas.
thanks
Re: resize composite inside a scrolled composite [message #454464 is a reply to message #454341] Thu, 21 April 2005 12:49 Go to previous message
Robert Bacs is currently offline Robert BacsFriend
Messages: 165
Registered: July 2009
Senior Member
I guess you forget to call setContent() method on your scrolled composite.
Try the following code:

ScrolledComposite sc = new ....
Composite contentComposite = new ....

sc.setContent(contentComposite);


Boby

"Eva" <vikulya_bluv@hotmail.com> wrote in message
news:4ed92a19cf07040605551559ff826f1a$1@www.eclipse.org...
> Hi,
> I have a scrolled composite (scrolledComposite) whose content is a
> composite (contentComposite). In my code I sometimes need to redraw
> contentComposite which might change the vertical size of contentComposite.
> However scrolledComposite doesn't pick up the change in size of
> contentComposite , and the scrolling bars are not ajdusted properly. As a
> result part of the contentComposite is cut off.
>
> Please help if you have any ideas.
> thanks
>
Previous Topic:how to force a paint event?
Next Topic:BUG in 3.1M6: NoClassDefFoundError/TabFolderLayout
Goto Forum:
  


Current Time: Thu Apr 25 17:29:06 GMT 2024

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

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

Back to the top