Re: How to distinguish widget ID and handle ID? [message #6793] |
Mon, 12 August 1996 00:00 |
steinhh
Messages: 260 Registered: June 1994
|
Senior Member |
|
|
In article <320F48DA.41C6@gsfc.nasa.gov>, Liyun Wang <Liyun.Wang.1@gsfc.nasa.gov> writes:
|> Hi,
|>
|> I have a simple question and would appreciate it if any of you can give
|> me a clue.
|>
|> In IDL version 4, when you create widgets and handles, the IDs of
|> widgets and handles *all* start from 1 (as long integers). Now when you
|> pass these kind of IDs into subroutines, how can you tell if a passed in
|> long integer is a widget ID or a handle ID?
|>
Well, if you have a widget base with ID=42, and a handle with ID=42, then the
answer is that "the (long integer) number 42 is both a (valid) widget id and a
(valid) handle id", and there's no way to thell the "intent" of that number.
You know the number but not the question :-)
You'll have to have some other method to distinguish the two.
Stein Vidar
|
|
|