realbasic-nug
[Top] [All Lists]

Re: Detect where window is in Z order.

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Detect where window is in Z order.
From: James Wagner <wagnerj at proaxis dot com>
Date: Fri, 30 May 2008 14:52:14 -0700
Authentication-results: mx.google.com; spf=pass (google.com: domain of realbasic-nug-bounces at lists dot realsoftware dot com designates 66.116.103.65 as permitted sender) smtp dot mail=realbasic-nug-bounces at lists dot realsoftware dot com
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BAY123-W139D6DE985FA778967414CFBE0 at phx dot gbl>
On May 30, 2008, at 2:42 PM, Bryan Benetti wrote:

>
> Fargo,
>
> Thank you for the idea. I wll try it out and see how it works.
>
> Would be cool though if there was some way to detect if a window is  
> overlaping your applications window. So if anyone has any experince  
> with that please email me.
>
> Thanks again.
>
> Best Regards,
> -bryan
> ----------------------------------------
>> Date: Fri, 30 May 2008 11:52:34 -0700
>> From: fargo at rpgportland dot com
>> To: realbasic-nug at lists dot realsoftware dot com
>> Subject: Re: Detect where window is in Z order.
>>
>> Bryan Benetti wrote:
>>> Hi,
>>>
>>> This is for a application we're making for Windows XP, and Vista.
>>>
>>> Is there a API function to detect where your window is in the Z  
>>> order? And then move it to the top?
>>>
>>> I went through the MSDN but nothing stood out to me. But, then I  
>>> might have passed it by.
>>>
>>> I have a window that needs to be topmost at all times. But if  
>>> another topmost window is open it could cover my window. I need a  
>>> way to detect if my topmost window is covered and then either get  
>>> topmost again or move my window to another part of the screen so  
>>> its visible.
>>>
>>> Is there anyway to detect if a window is partially or fully  
>>> covering another window?
>>>
>>> Thanks for the help!
>>>
>>> -bryan
>>> _________________________________________________________________
>>
>> I don't know about detecting if it's covered, but the Windows
>> Functionality Suite provides a BringToFront method. Couldn't you just
>> call that in a timer or the Activate event, or some other event?
>>
>> Best of luck,
>> Fargo
>>
>> _______________________________________________
>>

It sounds like what you really want is a globally floating window.  
Isn't that already implemented in RB?

Jim Wagner
Oregon Research Electronics
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


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