Thank you all for the quick responses.
The reason I'm asking, is I'm making a subclass of window, and a system to
track parentwindow/childwindow relationships by tracking the handles, and I
wanted to make sure (1) I could use a ParentWindowHandle of zero to
represent no parent window, and (2) if I needed to allow for the possibility
of negative window handles.
I take it that I can assume there will never be a window with a handle=0,
and that I do need to allow for the possibility of negative window handles.
If that's not a correct conclusion, please correct me... otherwise, thank
you all very much for your quick and helpful responses. :o)
----- Original Message -----
From: "Norman Palardy" <npalardy at great-white-software dot com>
To: "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com>
Sent: Thursday, June 30, 2005 4:09 PM
Subject: Re: possible range for Window.handle
>
> On Jun 30, 2005, at 2:00 PM, Seth Willits wrote:
>
> > On Jun 30, 2005, at 12:40 PM, O.H. wrote:
> >
> >> I need to know what range of values is possible for a windows handle
> >> on each
> >> of the supported platforms... Most importantly, is it possible for
> >> the
> >> handle method to return a negative or zero on any of the platforms?
> >
> > 0 means there is no handle. Anything else means there is one, and by
> > nature it should be a positive number.
> >
> Except when the value returned exceeds the range of an RB integer
> (which can happen)
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|