List Info

Thread: Obtain reference to component




Obtain reference to component
user name
2007-10-24 04:03:40

My Question is simple but i just cant figure it out. When using
DialogBlocks lets say i add a tree and a button to the frame. Then i
create a click event so that when the button is clicked. Now when the
button is clicked i want to add a node to the tree.
Now the part that confuses me is that the tree var is not global. It is
create in the init area and then added to the frame.
So how do i get a handle on the tree so i can work with it from the
button click event
Cheers in advance
Damian

__._,_.___
.

__,_._,___
Re: Obtain reference to component
user name
2007-10-24 04:21:23

damian wrote:

> So how do i get a handle on the tree so i can work with it from the
> button click event

Set a name in the "Member variable name" property through which you then
can access the control.

--
Matthias Bülow Schaeffer AG
Hohentwielsteig 6a Tel. +49-30-8058695-0
14163 Berlin Fax: +49-30-8058695-33
http://www.schaeffer-ag.de

HRB 93611 B, Amtsgericht Berlin Charlottenburg
Vorstand: Jörg Schaeffer, Kai Schaeffer
Aufsichtsrat: Dieter Kersten (Vorsitzender)

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )