Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » DropDown widgets - Proper way to do this?
DropDown widgets - Proper way to do this? [message #467141] Wed, 25 January 2006 17:55
Jeremy Dowdall is currently offline Jeremy DowdallFriend
Messages: 48
Registered: July 2009
Member
I have a few different widgets that I need to "drop down" (or "pop up",
depending upon your perspective) like a dropdown combo box, and am
wondering if there is a recommended way to do this.

I've looked at several pop up calendars and calculators, but none of
them seem to close properly, for instance, when I click outside of the
dropped shell, the SWT.Deactivate event is not called and the widget
won't close.

I then figured that the SWT CCombo might be a good example to work from.
I replaced the CCombo's List widget with my own widget and got exactly
the behaviour I needed, except when the parent shell is Modal (picture:
http://sourceforge.net/project/screenshots.php?group_id=1574 89) - then I
don't get any selection events (actually if you just replace the List
widget with a Button widget in the CCombo, it doesn't work either - the
List widget receives selection events, but the button won't, why is that?).

So, is there a right way to do this?

Thanks!
Previous Topic:Tree with a editor with properties
Next Topic:Eclipse style widgets
Goto Forum:
  


Current Time: Fri Apr 19 05:30:51 GMT 2024

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

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

Back to the top