comparison myframe.cpp @ 5:cb33c4b9ea23 default tip

small fix.
author pyon@macmini
date Wed, 06 Jun 2018 23:01:09 +0900
parents 3fadcf124bb4
children
comparison
equal deleted inserted replaced
4:3fadcf124bb4 5:cb33c4b9ea23
1 // Filename : myframe.cpp 1 // Filename : myframe.cpp
2 // Last Change: 2018-06-05 Tue 22:08:14. 2 // Last Change: 2018-06-06 Wed 22:46:55.
3 // 3 //
4 4
5 #include "myframe.h" 5 #include "myframe.h"
6 #include "dndfile.h" 6 #include "dndfile.h"
7 #include "sample.xpm" 7 #include "sample.xpm"
82 m_staticTextPercent->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_3DLIGHT ) ); 82 m_staticTextPercent->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_3DLIGHT ) );
83 m_staticTextPercent->SetBackgroundColour( *wxBLACK ); 83 m_staticTextPercent->SetBackgroundColour( *wxBLACK );
84 bSizerConfig->Add( m_staticTextPercent, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 84 bSizerConfig->Add( m_staticTextPercent, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
85 85
86 m_textCtrlPercent = new wxTextCtrl( this, wxID_ANY, wxT("100"), wxDefaultPosition, wxSize( 40, -1 ), wxTE_RIGHT|wxTAB_TRAVERSAL ); 86 m_textCtrlPercent = new wxTextCtrl( this, wxID_ANY, wxT("100"), wxDefaultPosition, wxSize( 40, -1 ), wxTE_RIGHT|wxTAB_TRAVERSAL );
87 m_textCtrlPercent->SetMaxLength( 3 );
87 bSizerConfig->Add( m_textCtrlPercent, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); 88 bSizerConfig->Add( m_textCtrlPercent, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
88 89
89 bSizerTop->Add( bSizerConfig, 1, wxEXPAND, 5 ); 90 bSizerTop->Add( bSizerConfig, 1, wxEXPAND, 5 );
90 91
91 // Output 92 // Output