comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » valid vs managed widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
valid vs managed widget [message #40140] Tue, 20 July 2004 06:33
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Hello,

When I want to have a particular GUI realized only once (say for a GUI based
object property editor) I have always used ...

If WIDGET_INFO(myWidgetID, /VALID_ID) EQ 1 BEGIN
WIDGET_CONTROL, myWidgetID, /SHOW
RETURN
END


But this morning the heavy fog out on the bay has crept into my mind and filled
it with a nagging doubt; should I be testing if IDL is already managing the
widget ID instead? Some combination? And just what is the difference between a
VALID ID and a MANAGED ID?

Here's the online description of each keyword to WIDGET_INFO.

VALID_ID
Set this keyword to return 1 if Widget_ID represents a currently-valid widget.
Otherwise, 0 is returned.


MANAGED
Set this keyword to return 1 if the specified widget is managed, or 0 otherwise.


Thanks!
Ben
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Where Function with Arrays
Next Topic: Re: valid vs managed widget

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 01:27:37 PDT 2025

Total time taken to generate the page: 0.48057 seconds