On Apr 15, 2006, at 12:35 PM, realbasic-nug-
[EMAIL PROTECTED] wrote:
Message: 16
Subject: Re: How to get currentWindow that's opening?
From: Hans-Georg <[EMAIL PROTECTED]>
Date: Sat, 15 Apr 2006 18:00:17 +0200
Am 15.04.2006 um 17:50 schrieb Marc Van Olmen:
In the constructor of one of my containercontrol, I want to get
access to the Main (or owner) Window
So the real window that's hosting all the container controls.
The container Controls can be several levels deep of container
controls.
in the debugger I see "ownerWindow", but I can't seem to be able to
access that in my code, because compiler gives warning.
From the language reference: ContainerControl Class
Properties: Window Tpye: Window
Gets the containing window. Multiple levels of embedding are
permitted, so this window may not be the highest level
window.
Don't know if it has been answered yet but the true window of a
container control can be accessed by containerControl.Handle. Of
course this will not give you a "window", but a WindowRef or HWND.
Then you need a search function to map the handle to the window. This
should work (it does so in plugins)
Alfred
_______________________________________________
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>