comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Re: Clearing widget_list of all entries

Re: Clearing widget_list of all entries
type: item
description: David Fanning wrote: > Robert Weiss (weiss@mpia-hd.mpg.de) writes: > >> Does anyone of you know a way to clear a widget_list of all items ? >> Using widget_control with set_value doesn't work since no string arrays >> of zero >> length are permitted in IDL. > > I should think Widget_Control, listWidgetID, Set_Value="" would > do pretty much what you want. With, perhaps, some kind of > check in the list event handler to not respond to any > event that generated a null string for a value. That's quite similar to what I did already (setting sensitivity to 0 for lists containing only an empty string) ... I just felt it would be a nice (and logical) feature for a list widget to be "emptiable" ;-) ... AND zero length arrays would come in handy for a couple of other problems as well (does anyone at RSI read this newsgroup?), however, thanks a lot, Robert.
creator: Robert Weiss
date: 2000-02-17T08:00:00-00:00

Re: Clearing widget_list of all entries
type: item
description: Robert Weiss (weiss@mpia-hd.mpg.de) writes: > Does anyone of you know a way to clear a widget_list of all items ? > Using widget_control with set_value doesn't work since no string arrays > of zero > length are permitted in IDL. I should think Widget_Control, listWidgetID, Set_Value="" would do pretty much what you want. With, perhaps, some kind of check in the list event handler to not respond to any event that generated a null string for a value. Or, if even this was too much list, you could put the list widget in a bulletin-board base and simply unmap the base widget. This would make the whole thing disappear, no matter how many list items it contained. Cheers, David -- David Fanning, Ph.D. Fanning Software Consulting Phone: 970-221-0438 E-Mail: davidf@dfanning.com Coyote's Guide to IDL Programming: http://www.dfanning.com/ Toll-Free IDL Book Orders: 1-888-461-0155
creator: davidf
date: 2000-02-17T08:00:00-00:00