Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » change Widget's Style...
change Widget's Style... [message #443506] Sun, 26 September 2004 11:30 Go to next message
Eclipse UserFriend
Originally posted by: seraphim.online.de

Hi,

is there a possibility to change style of already existing widget?
In my special case I have to disable or enable scrollbars on a
ScrolledComposite depending on the size of its content.
It seems that ScrolledComposite reserves the place for its scrollbars
even if they are not visible.

thanks
I
Re: change Widget's Style... [message #443714 is a reply to message #443506] Wed, 29 September 2004 17:22 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
CAn you post some code that shows the problem? You can hide and show scroll
bars using ScrollBar.setVisible() but since you are using ScrolledComposite,
this is probably not the right thing to do as ScrolledComposite manages the
scroll bars. By "reserves the place", do you mean that computeSize() adds
the space for scroll bars in a layout? Anyway, a stand alone example would
end all of the speculation and give us something to work with. Thanks.

"J
Previous Topic:how to create a link inside a shell or dialog
Next Topic:How to : text disable with foreground color not grayed
Goto Forum:
  


Current Time: Fri Apr 19 19:24:51 GMT 2024

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

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

Back to the top