Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ViewForm Close Button
ViewForm Close Button [message #465366] Sat, 10 December 2005 18:26 Go to next message
Eclipse UserFriend
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 05:34 Go to previous message
Eclipse UserFriend
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: Sun Jul 06 14:46:43 EDT 2025

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

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

Back to the top