void OnSubmit( Gwen::Controls::Base* pControl ) { Gwen::Controls::TextBox* textbox = (Gwen::Controls::TextBox*) (pControl); UnitPrint( Utility::Format( L"Textbox Submit: [%s]\n", textbox->GetText().c_str() ) ); }
void OnEdit( Gwen::Controls::Base* pControl ) { Gwen::Controls::TextBox* textbox = ( Gwen::Controls::TextBox* )( pControl ); UnitPrint( Utility::Format( L"Textbox Edit: [%ls]\n", textbox->GetText().GetUnicode().c_str() ) ); }