| Re: widget IDs ever zero? [message #40900] |
Thu, 09 September 2004 16:27  |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
Paul Van Delst wrote:
> Benjamin Hornberger wrote:
>
>> Hi all,
>>
>> just to make sure before I run into trouble -- a widget ID will never
>> be zero, right?
>
>
> I don't know. I don't see why a value of zero couldn't be a valid ID.
>
> If you have the widget ID, why not use the WIDGET_INFO function with the
> ACTIVE keyword set. Then you don't have to worry about what a widget ID
> value actually means. That will tell if the widget ID is
> realized/managed/etc.
Take Paul's advice, it's probably a better approach. But to answer your
Q yes, a widget ID will never be 0.
-Rick
|
|
|
|
|
|
| Re: widget IDs ever zero? [message #41067 is a reply to message #40900] |
Wed, 22 September 2004 18:30  |
algosat
Messages: 7 Registered: September 2004
|
Junior Member |
|
|
>> I don't know. I don't see why a value of zero couldn't be a valid ID.
>>
>> If you have the widget ID, why not use the WIDGET_INFO function with the
>> ACTIVE keyword set. Then you don't have to worry about what a widget ID
>> value actually means. That will tell if the widget ID is
>> realized/managed/etc.
what if you dont have, or you lose, the widget id of a widget that is
realized? how do you find it again?
Andrew
|
|
|
|