MGH_GUI_DROPLIST__DEFINE Class
MGH_GUI_Droplist Purpose
An enhanced droplist widget Category
Widgets. Properties
The following properties (ie keywords to the Init, GetProperty and
SetProperty methods) are supported:
COLUMN (Init)
Set this keyword to put the title above the droplist,
otherwise it is put to the left.
INDEX (Init, Get, Set)
Zero-based index of the currently selected droplist
item. Default is 0.
N_VALUES (Get)
Number of items in the droplist.
PARENT (Init(*), Get)
Parent widget ID. (*) Passed to Init via parent argument.
SELECTED_VALUE (Init, Get, Set)
Value of the currently selected droplist item. Type is
string.
TITLE (Init, Get)
Label adjacent to the widget.
UNAME (Init, Get, Set)
A string that can be used to identify the widget. Default is ''.
UVALUE (Init, Get, Set)
User value. Default is undefined.
VALUE (Init, Get, Set)
The string array displayed in the droplist.
###########################################################################
This software is provided subject to the following conditions:
1. NIWA makes no representations or warranties regarding the
accuracy of the software, the use to which the software may
be put or the results to be obtained from the use of the
software. Accordingly NIWA accepts no liability for any loss
or damage (whether direct of indirect) incurred by any person
through the use of or reliance on the software.
2. NIWA is to be acknowledged as the original author of the
software where the software is used or presented in any form.
###########################################################################
Modification History
Mark Hadfield, 2001-06.
Written, borrowing freely from ideas in David Fanning's
FSC_DROPLIST (http://www.dfanning.com/programs/fsc_droplist.pro).
Originally a stand-alone class, now a sub-class of MGH_GUI_Base.
Mark Hadfield, 2001-11.
- Updated for IDL 5.5
- The TITLE property can now be set only on initialisation,
whereas previously it could also be set later. This is to avoid
having an empty title label when it is not needed.
Mark Hadfield, 2003-08.
Updated for IDL 6.0. Now that WIDGET_DROPLIST widgets support both
GET_VALUE and SET_VALUE keywords to WIDGET_CONTROL, it is no longer
necessary to store the VALUE property in a pointer.