Re: Strange widget_info(FIND_BY_UNAME...) results [message #37720] |
Thu, 22 January 2004 10:57 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
b.hinrichsen@fkf.mpg.de writes:
> I am new to IDL and am suffering from strange return values from the
> widget_info function. My version of IDL is 5.6 (Win2000).
>
> The value of a text widget is to be updated but when i try to get its
> ID with the following code:
> widget_info(Event.top, FIND_BY_UNAME=WID_TEXT_12)
> this is returned:
> { Windows 2000 Win32 5.0}
> and this is the same for all the widgets I try to identify. As far as
> I know this output should only be returned with the /version flag set.
> Nowhere in my source do I use it.
>
> What went wrong? Please help!
Is the variable WID_TEXT_12 a string, by any chance. Or did
you mean this:
id = widget_info(Event.top, FIND_BY_UNAME='WID_TEXT_12')
Strange name. You aren't using that GUI Builder are you?
Heavens!
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|