continuing to learn about wxWidgets, i 'd try to create a wxDialog, using : - wxTextCtrl (variable field_1 contain the value entered in wxTextCtrl) - wxStaticBox displaying the value entered into wxTextCtrl - button refresh
when I change the value in wxTextCtrl and click on button "refresh"...the value in wxStaticBox is not refresh...
I use function
void MainWindow::OnClick() { this->Refresh(); }
Is anybody know how to refresh the field in window ??
2. Re: Refresh window
#4059
Posted by: 2004-05-07 15:43:50
I had THE solution,maybe it 'll help somebody else....
In event on click : Code: text_static->SetLabel(edit_box->GetValue());
I have to declare before in private class wxStaticText and wxTextCtrl