|
Re: Deleting objects from widgets [message #49943 is a reply to message #49942] |
Mon, 28 August 2006 07:37  |
Tom S.
Messages: 9 Registered: June 2006
|
Junior Member |
|
|
Try using the SET_VALUE keyword in the WIDGET_CONTROL procedure.
i.e.
new_list = ['item 1', 'item 2', 'item 3']
WIDGET_CONTROL, list_widget, SET_VALUE=new_list
Note that you can't retrieve the list using GET_VALUE, you can only set
it.
Thus, you'd have to keep track of the list separately. When a delete
event is received you can delete the item from the separate list, and
then re-set the list widget's value as shown above.
Cheers,
Tom
ChristopherFlorio@gmail.com wrote:
> Currently I have using a widget_list in a GUI. It would be advantageous
> if I could setup the list such that when I press the delete key the
> select list item is removed and an event is triggered. Does anyone know
> if this is at all possible?
|
|
|