Hi all,
I would like to ask you, what should I use when I want to get text from TextEditBox. I have observer, which listens for chages(when user hits enter, method Update from Observer is called). The only thing that I dont know is how to get text, that has been placed into text edit box. I know that dialog observer, has method GetTextControlData, but I have Panel...
Thx
Hi Ondrej
You can get text using ITextControlData interface. Like this:
| InterfacePtr<IControlView> iCtrlView(this, UseDefaultIID()); |
| if(!iCtrlView) break; // put some assert message |
| InterfacePtr<ITextControlData> iTextData(iCtrlView, UseDefaultIID()); |
| if(!iTextData) break; // put some assert message |
| PMString theString = iTextData->GetString() |
Regards
Bartek
North America
Europe, Middle East and Africa
Asia Pacific