Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ViewForm Close Button
ViewForm Close Button [message #465366] Sat, 10 December 2005 23:26 Go to next message
Jeff Yuan is currently offline Jeff YuanFriend
Messages: 34
Registered: July 2009
Member
Hi,
If I wanted a close button on the TopRight for a viewform, do I need to
write a custom close button? Or is there some default implementation of
this?

Also, if I close a viewform, how can I make it visiable again, short of
reinstantiating it?

The reason I'm asking is that I'm looking for something that is similar to
the sidebar feature of FireFox, where you could close the sidebar, but
make it visible again easily.

Any ideas?

Thanks.
Re: ViewForm Close Button [message #465368 is a reply to message #465366] Sun, 11 December 2005 10:34 Go to previous message
Sebastian Machhausen is currently offline Sebastian MachhausenFriend
Messages: 6
Registered: July 2009
Junior Member
Hi,

a possible way to reproduce this close button is to use a ToolItem that holds a close (cross) image and put it inside a ToolBar component. The ToolBar again has to be set as top right component in the applied ViewForm instance.

I guess it's not very efficient to instantiate the ViewForm each time it is made visible again so you better just switch the ViewForm's visibility status. To achive a Firefox like behaviour you'll have to use an adequate layout which fills up free layout space if the ViewForm becomes invisible. I hope this helps.

Regards
Sebastian
Previous Topic:Equally sized widgets
Next Topic:ScrolledComposite - how to focus it on the bottom?
Goto Forum:
  


Current Time: Wed Apr 24 21:03:13 GMT 2024

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

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

Back to the top