|
List Info
Thread: Getting Value of wxTextCtrl
|
|
| Getting Value of wxTextCtrl |

|
2006-05-02 19:12:07 |
|
>Hi all!
>
>Just got DB - fantastic program! Many thanks to the developer(s).
>
>I have a Wizard - with the page "WizardPage". In
>"WizardPage::CreateControls()" it creates a wxTextCtrl called
>"itemTextCtrl5".
>
>I cannot, however, access this from my own custom function. Any ideas
>on how to do it? I've tried everything I can think of:
>
>WizardPage.itemTextCtrl5->GetValue();
>WizardPage->itemTextCtrl5->GetValue();
>itemTextCtrl5->GetValue();
>
>
>
Hi,
if you want to access the textcontrol. you have to give it a name in the
"member variable" section of the properties-editor of this text control.
Or, more clearly: If you select the textctrl in DialogBlocks, edit the
field "member variable" to, for instance, "myTextControl", and then you
can use WizardPage->myTextCztro->GetValue()
Regards,
Andreas
>Thanks in advance for any advice!
>
>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
--
Andreas Goebel
Visit http://www.raumgeometrie.de to take a look at
Archimedes Geo3D, a program for dynamic geometry
in three dimensions!
|
| Getting Value of wxTextCtrl |

|
2006-05-03 17:53:20 |
|
wxWindow:
wxString value = FindWindow(THE_CTRL_ID)->GetValue();
Either will work fine.
John
--- Andreas Goebel <a-goebel gmx.de> wrote:
> emotivematt schrieb:
>
> >Hi all!
> >
> >Just got DB - fantastic program! Many thanks to the
> developer(s).
> >
> >I have a Wizard - with the page "WizardPage". In
> >"WizardPage::CreateControls()" it creates a
> wxTextCtrl called
> >"itemTextCtrl5".
> >
> >I cannot, however, access this from my own custom
> function. Any ideas
> >on how to do it? I've tried everything I can think
> of:
> >
> >WizardPage.itemTextCtrl5->GetValue();
> >WizardPage->itemTextCtrl5->GetValue();
> >itemTextCtrl5->GetValue();
> >
> >
> >
> Hi,
>
> if you want to access the textcontrol. you have to
> give it a name in the
> "member variable" section of the properties-editor
> of this text control.
>
> Or, more clearly: If you select the textctrl in
> DialogBlocks, edit the
> field "member variable" to, for instance,
> "myTextControl", and then you
> can use WizardPage->myTextCztro->GetValue()
>
> Regards,
>
> Andreas
>
> >Thanks in advance for any advice!
> >
> >
> >
> >
> >
> >
> >
> >Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> Andreas Goebel
>
> Visit http://www.raumgeometrie.de to take a look at
> Archimedes Geo3D, a program for dynamic geometry
> in three dimensions!
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|
| Getting Value of wxTextCtrl |

|
2006-05-03 23:58:31 |
|
Thanks to all, I got it working! Nice group of people here  Compliment ing a wonderful product.
Thank you!
----- Original Message ---- From: John Dubchak <johndubchak yahoo.com> To: anthemion-devtools@yahoogroups.com Sent: Wednesday, 3 May, 2006 6:53:20 PM Subject: Re: [anthemion-devtools] Getting Value of wxTextCtrl
The other option is to use the FindWindow function of wxWindow: wxString value = FindWindow(THE_CTRL_ID)->GetValue(); Either will work fine. John --- Andreas Goebel <a-goebel gmx.de> wrote: > emotivematt schrieb: > > >Hi all! > > > >Just got DB - fantastic program! Many thanks to
the > developer(s). > > > >I have a Wizard - with the page "WizardPage". In > >"WizardPage::CreateControls()" it creates a > wxTextCtrl called > >"itemTextCtrl5". > > > >I cannot, however, access this from my own custom > function. Any ideas > >on how to do it? I've tried everything I can think > of: > > > >WizardPage.itemTextCtrl5->GetValue(); > >WizardPage->itemTextCtrl5->GetValue(); > >itemTextCtrl5->GetValue(); > > > > > > > Hi, > > if you want to access the textcontrol. you have to > give it a name in the > "member variable" section of the properties-editor > of this text control. > > Or, more clearly: If you select the textctrl in > DialogBlocks, edit the > field "member variable" to, for instance, >
"myTextControl", and then you > can use WizardPage->myTextCztro->GetValue() > > Regards, > > Andreas > > >Thanks in advance for any advice! > > > > > > > > > > > > > > > >Yahoo! Groups Links > > > > > > > > > > > > > > > > > > > > > -- > Andreas Goebel > > Visit http://www.raumgeometrie.de to take a look at > Archimedes Geo3D, a program for dynamic geometry > in three dimensions! > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
|
[1-3]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|