DropDown widgets - Proper way to do this? [message #467141] |
Wed, 25 January 2006 17:55 |
Jeremy Dowdall 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!
|
|
|
Powered by
FUDForum. Page generated in 0.02181 seconds