|
List Info
Thread: access to class elements (wxFrame to wxFrame)
|
|
| access to class elements (wxFrame to
wxFrame) |

|
2006-03-28 07:36:15 |
|
Am Montag, 27. März 2006 09:57 schrieb Daniel Schruver:
Hi Daniel,
> Hello,
>
> no the TextCtrl1 is a member of my main frame, not a member of the
> preferencesfrm.
Mark the wxTextCtrl in the DialogBlocks Editor. Than goto the properties list
and write TextCtrl1 into the field marked "member Variable Name". DB will
generate the definition code for you.
Regards
Thomas
> Your code generates the error 'TextCtrl1' undeclared(first use this
> function).
>
> greetings
> Daniel S.
>
>
> Am Montag, 27. März 2006 08:37 schrieb Daniel Schruver:
> Hi Daniel,
> if preferencesfrm is your derived frame and TextCtrl1 is a defined member
> variable for the textctrl, you simply write:
>
> void preferencesfrm::OnButtonClick( wxCommandEvent& event )
> {
> TextCtrl1->AppendText(wxT("COMBOBOX1 VALUE1 SELECTED:"));
> TextCtrl1->AppendText(COMBOBOX1->GetValue());
> }
> as OnButtonClick is a method of your class and all member vars are directly
> accessible.
> regards
> Thomas
>
> > > I get the message error: syntax error before '->' token.
> > > I have include the header of my main frame class in the preferences
>
> frame
>
> > > class.
> > > Please tell me how can I get acces to the wxTextCntrl in my main frame
>
> from
>
> > > a control on my preferences frame. The book and the wxWidgets help
>
> doesn't
>
> > > helps me.
> > >
> > > A next question, but to DialogBlocks itself. The settings menu offers a
> > > combobox named Language. Were can I get a German language file?
> > >
> > > greetings
> > > Daniel S.
>
> -- Dipl.-Ing. Thomas Zehbe INGENION GmbH Kuhweide 6 31552 Apelern Fon:
> 05043 is subject to: http://docs.yahoo.com/info/terms/
--
Dipl.-Ing. Thomas Zehbe
INGENION GmbH
Kuhweide 6
31552 Apelern
Fon: 05043 / 40 57 904
Fax: 05043 / 40 57 907
|
[1]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|