Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Refresh window

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Refresh window
#4021
Posted by: 2004-05-04 21:43:47
hi all,

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 ??

Message2. 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
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Sat 2024-12-14  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0