Hans,

That doesn't work, because .window is nil in the constructor.
Also I was trying this :

myWindow.constructor
  begin
    app.mMainWindow = self
  end

But Realbasic has the weirdo constructor calling order:

The containerControl constructor methods are called before the Window.constructor method that contains those controls...

So in my case the app.mMainWindow = nil


so still searching for a trick...

regards,

mvo






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.

Hans-Georg

On Apr 15, 2006, at 11:50 AM, Marc Van Olmen wrote:

hi,

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.

regards,

marc

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

Reply via email to