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

Home » Public Forums » archive » Re: How to distinguish widget ID and handle ID?
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
Re: How to distinguish widget ID and handle ID? [message #6793] Mon, 12 August 1996 00:00
steinhh is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: RGB from 3 grayscale images under IDL
Next Topic: How to distinguish widget ID and handle ID?

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

Current Time: Wed Oct 08 19:26:41 PDT 2025

Total time taken to generate the page: 0.00498 seconds