realbasic-nug
[Top] [All Lists]

Re: possible range for Window.handle

To: "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: possible range for Window.handle
From: "O.H." <RealBasic at ohelix dot com>
Date: Thu, 30 Jun 2005 16:20:25 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <002b01c57dab$8d4f47f0$a301a8c0 at joe><23B8462F-9526-483D-8ECD-03C66BF46CFE at freaksw dot com> <c9cff46f17d10f7598ca35be5d74ae8c at great-white-software dot com>
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>

<Prev in Thread] Current Thread [Next in Thread>