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: Fargo Holiday <fargo at rpgportland dot com>
Date: Fri, 30 May 2008 11:52:34 -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-W13F7E513093D0CD50F5EC9CFBE0 at phx dot gbl>
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

_______________________________________________
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>