Hi!
This would be my preferred method, too!;) It also has the advantage
of making the code more readable, especially if you set "Use member
variable name for identifier name" with optional prefix/suffix
setting (ID_TREECTRL1 is not very informative, whereas
ItemsSpecifierTreeId is!;) in View > Settings > C++ Generation.
However, in deference to folks who like such things "hidden", you can
alternatively use one of the wxWindow::FindWindow
[ById|ByLabel|ByName] functions (since most all "visible" wxWidgets
elements are derived from wxWindow). Personally, I find it an
unnecessary level of indirection and cumbersome to use, but many
prefer it as a "general/conventional" C++ paradigm.
HTH:
thx,
Dave S.
--- In anthemion-devtools%40yahoogroups.com">anthemion-devtools
yahoogroups.com, Matthias Buelow <mb
...>
wrote:
>
> 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)
>
.