gettingstarted
[Top] [All Lists]

Re: reference to another window

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: reference to another window
From: Arnaud Nicolet <arnaud at tribu dot ch>
Date: Mon, 30 May 2005 15:49:52 +0200
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <55171CCB-2466-4183-BA1D-590CF703421C at heintz dot de>
On 30 mai 2005, at 02:17Soir, Alexander Heintz wrote:

Hi there,

quick question from a newbie:

I open a window and pass its contructor as a reference the window that it got opened from.

in this new window i do:

win_parent.lb_nodes.expanded(win_parent.lb_nodes.listindex) = true

the compiler will not let me do this and tells me the object lb_nodes is not present. when i comment this out and debug, all looks fine: win_parent is the parent window with the control lb_nodes in the objects.
What am I doing wrong here?

Same when I try to access a property of that other window.

If I recall correctly, properties and controls being in a window can't be accessed from the constructor event (where those properties and controls (and probably methods as well) aren't yet constructed).

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