List Info

Thread: Re: Re: Obtain reference to component




Re: Re: Obtain reference to component
user name
2007-10-24 08:00:05

ddotedotsdot wrote:

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

In what way would that be a "general/conventional C++ paradigm"?

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

__._,_.___
.

__,_._,___
Re: Obtain reference to component
country flaguser name
United States
2007-10-24 07:45:39

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-devtoolsyahoogroups.com, Matthias Buelow <mb...>
wrote:
>
&gt; damian wrote:
&gt;
> > So how do i get a handle on the tree so i can work with it from
the
&gt; > button click event
&gt;
> 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
&gt;
> 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 )