0
|
1 // Filename : myframe.cpp
|
1
|
2 // Last Change: 04-Aug-2013.
|
0
|
3 //
|
|
4 #include "main.h"
|
1
|
5 #include "db.h"
|
0
|
6 #include "myframe.h"
|
|
7 #include "about.h"
|
|
8 #include "kana.h"
|
|
9 #include "hist.h"
|
|
10 #include "index.h"
|
|
11 #include "mask.h"
|
|
12
|
1
|
13 ///////////////////////////////////////////////////////////////
|
|
14 // カスタム検索ボックス
|
|
15 MySearchBox::MySearchBox( wxWindow* parent, wxWindowID id, const wxString& value, const wxPoint& pos, const wxSize& size, long style )
|
|
16 : wxSearchCtrl( parent, id, value, pos, size, style )
|
|
17 {
|
|
18 }
|
|
19
|
|
20 MySearchBox::~MySearchBox()
|
|
21 {
|
|
22 }
|
|
23
|
|
24 // Event Table
|
|
25 BEGIN_EVENT_TABLE( MySearchBox, wxSearchCtrl )
|
|
26 EVT_CHAR( MySearchBox::OnKey )
|
|
27 END_EVENT_TABLE()
|
|
28
|
|
29 // Event Handlers & Functions
|
|
30 void MySearchBox::OnKey( wxKeyEvent& event )
|
|
31 {
|
|
32 wxString s = GetValue();
|
|
33 // statustext( s.Len() );
|
|
34
|
|
35 if ( event.GetKeyCode() == 45 ) { // テンキーの '-' キーで1文字削除
|
|
36 wxString t = GetStringSelection();
|
|
37 if ( t.IsEmpty() ) {
|
|
38 long p = GetInsertionPoint();
|
|
39 if ( p > 0 ) Remove( p - 1, p );
|
|
40 }
|
|
41 else {
|
|
42 Cut();
|
|
43 }
|
|
44 return;
|
|
45 }
|
|
46
|
|
47 if ( event.GetKeyCode() == WXK_RETURN ) {
|
|
48
|
|
49 if ( s.IsSameAs( wxT("+") ) ) {
|
|
50 wxMessageBox(wxT("pripri"));
|
|
51 return;
|
|
52 }
|
|
53
|
|
54 wxRegEx reHhs( wxT("^0[1238][0-9]{8}$") );
|
|
55 if ( reHhs.Matches( s ) ) {
|
|
56 wxString t = GetHhsInfoByHhsNo( s );
|
|
57 wxArrayString array = GetPathByHhsNo( s );
|
|
58 wxMessageBox( t );
|
|
59 return;
|
|
60 }
|
|
61
|
|
62 wxRegEx reNo( wxT("^[0-9]{1,2}$") );
|
|
63 if ( reNo.Matches( s ) ) {
|
|
64 return;
|
|
65 }
|
|
66
|
|
67 //m_parent->SetStatusMessage(wxT("bad input"), 0 );
|
|
68 return;
|
|
69 }
|
|
70
|
|
71 event.Skip();
|
|
72 }
|
|
73
|
|
74 ///////////////////////////////////////////////////////////////
|
|
75 // メインフレーム
|
0
|
76 #define WINL_W 400
|
|
77 #define LOGO_W 200
|
|
78 #define LOGO_H 92
|
|
79
|
|
80 // resources
|
|
81 #if !defined(__WXMSW__) && !defined(__WXPM__)
|
|
82 #include "sample.xpm"
|
|
83 #endif
|
|
84
|
|
85 MyFrame::MyFrame( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style )
|
|
86 : wxFrame( parent, id, title, pos, size, style )
|
|
87 {
|
|
88 this->SetSizeHints( wxSize( WINL_W, 500 ), wxDefaultSize );
|
|
89 this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_ACTIVEBORDER ) );
|
|
90 //this->SetBackgroundColour( wxColour(wxT("WHEAT")) );
|
|
91
|
|
92 // set the frame icon
|
|
93 SetIcon(wxICON(sample));
|
|
94
|
|
95 // メニューバー Menu
|
|
96 m_menubar = new wxMenuBar( 0 );
|
|
97 m_menuFile = new wxMenu();
|
|
98
|
|
99 wxMenuItem* m_menuItemViewMode = new wxMenuItem( m_menuFile, ID_MNVIEW, wxString( wxT("ビューモード") ) , wxT("Toggle ViewMode"), wxITEM_CHECK );
|
|
100 m_menuFile->Append( m_menuItemViewMode );
|
|
101
|
|
102 m_menuFile->AppendSeparator(); // ----
|
|
103
|
|
104 wxMenuItem* m_menuItemIndex = new wxMenuItem( m_menuFile, ID_MNINDEX, wxString( wxT("インデックス") ) , wxT("Update index"), wxITEM_NORMAL );
|
|
105 m_menuFile->Append( m_menuItemIndex );
|
|
106
|
|
107 wxMenuItem* m_menuItemMask = new wxMenuItem( m_menuFile, ID_MNMASKPARAM, wxString( wxT("マスクパラメータ") ) , wxT("Setup mask parameters"), wxITEM_NORMAL );
|
|
108 m_menuFile->Append( m_menuItemMask );
|
|
109
|
|
110 wxMenuItem* m_menuItemAppDir = new wxMenuItem( m_menuFile, ID_MNAPPDIR, wxString( wxT("アプリケーションフォルダを開く") ) , wxT("Open application directory"), wxITEM_NORMAL );
|
|
111 m_menuFile->Append( m_menuItemAppDir );
|
|
112
|
|
113 m_menuFile->AppendSeparator(); // ----
|
|
114
|
|
115 wxMenuItem* m_menuItemAbout = new wxMenuItem( m_menuFile, ID_MNABOUT, wxString( wxT("&About...\tF1") ) , wxT("Show about dialog"), wxITEM_NORMAL );
|
|
116 m_menuFile->Append( m_menuItemAbout );
|
|
117
|
|
118 m_menubar->Append( m_menuFile, wxT("ファイル(&F)") );
|
|
119
|
|
120 this->SetMenuBar( m_menubar );
|
|
121
|
|
122 //
|
|
123 wxBoxSizer* bSizerTop = new wxBoxSizer( wxVERTICAL );
|
|
124
|
|
125 m_splitter = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D );
|
1
|
126 wxBoxSizer* bSizerL = new wxBoxSizer( wxVERTICAL );
|
0
|
127
|
1
|
128 // left-pane
|
0
|
129 m_panelL = new wxPanel( m_splitter, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
130
|
|
131 wxString logo = wxGetCwd() + wxFILE_SEP_PATH + wxT("image") + wxFILE_SEP_PATH + wxT("logo.png");
|
|
132 wxBitmap bmp = wxBitmap( logo, wxBITMAP_TYPE_PNG );
|
|
133 m_bitmap = new wxStaticBitmap( m_panelL, wxID_ANY, bmp, wxDefaultPosition, wxSize( LOGO_W, LOGO_H ), 0 );
|
|
134 bSizerL->Add( m_bitmap, 0, wxALL, 5 );
|
|
135
|
|
136 m_textCtrlName = new wxTextCtrl( m_panelL, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 200, -1 ), 0 );
|
|
137 bSizerL->Add( m_textCtrlName, 0, wxALL, 5 );
|
|
138
|
|
139 m_textCtrlAddr = new wxTextCtrl( m_panelL, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 380, -1 ), 0 );
|
|
140 bSizerL->Add( m_textCtrlAddr, 0, wxALL, 5 );
|
|
141
|
|
142 m_listCtrl = new wxListCtrl( m_panelL, ID_LIST, wxDefaultPosition, wxDefaultSize, wxLC_REPORT );
|
|
143 wxListItem itemCol;
|
|
144 itemCol.SetText( wxT("通番") );
|
|
145 m_listCtrl->InsertColumn( 0, itemCol );
|
|
146 m_listCtrl->SetColumnWidth( 0, 50 );
|
|
147 itemCol.SetText( wxT("年月日") );
|
|
148 m_listCtrl->InsertColumn( 1, itemCol );
|
|
149 m_listCtrl->SetColumnWidth( 1, 80 );
|
|
150 itemCol.SetText( wxT("場所") );
|
|
151 m_listCtrl->InsertColumn( 2, itemCol );
|
|
152 m_listCtrl->SetColumnWidth( 2, 300 );
|
|
153 bSizerL->Add( m_listCtrl, 1, wxALL|wxEXPAND, 5 );
|
|
154
|
|
155 wxBoxSizer* bSizerCmd = new wxBoxSizer( wxHORIZONTAL );
|
|
156
|
1
|
157 m_staticText = new wxStaticText( m_panelL, wxID_ANY, wxT("コマンド?"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
158 bSizerCmd->Add( m_staticText, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
0
|
159
|
1
|
160 m_searchBox = new MySearchBox( m_panelL, ID_SEARCH, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
|
0
|
161 #ifndef __WXMAC__
|
1
|
162 m_searchBox->ShowSearchButton( true );
|
0
|
163 #endif
|
1
|
164 m_searchBox->ShowCancelButton( false );
|
|
165 m_searchBox->SetFocus();
|
|
166 bSizerCmd->Add( m_searchBox, 1, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
0
|
167
|
1
|
168 m_buttonKana = new wxButton( m_panelL, ID_KANA, wxT("カナ検索"), wxDefaultPosition, wxSize( 65, -1 ), 0 );
|
|
169 bSizerCmd->Add( m_buttonKana, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 20 );
|
0
|
170
|
1
|
171 m_buttonHist = new wxButton( m_panelL, ID_HIST, wxT("検索履歴"), wxDefaultPosition, wxSize( 65, -1 ), 0 );
|
0
|
172 bSizerCmd->Add( m_buttonHist, 0, wxALL, 5 );
|
|
173
|
|
174 bSizerL->Add( bSizerCmd, 0, wxEXPAND, 5 );
|
|
175
|
|
176 m_panelL->SetSizer( bSizerL );
|
|
177 m_panelL->Layout();
|
|
178 bSizerL->Fit( m_panelL );
|
|
179
|
1
|
180 // right-pane
|
0
|
181 m_panelR = new wxPanel( m_splitter, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
182 wxBoxSizer* bSizerR = new wxBoxSizer( wxHORIZONTAL );
|
|
183
|
|
184 m_bitmapView = new wxStaticBitmap( m_panelR, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
|
|
185 bSizerR->Add( m_bitmapView, 1, wxALL|wxEXPAND, 5 );
|
|
186
|
|
187 m_listCtrlThumb = new wxListCtrl( m_panelR, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_ICON );
|
|
188 bSizerR->Add( m_listCtrlThumb, 0, wxALL|wxEXPAND, 5 );
|
|
189
|
|
190 m_panelR->SetSizer( bSizerR );
|
|
191 m_panelR->Layout();
|
|
192 bSizerR->Fit( m_panelR );
|
|
193
|
|
194 m_panelR->Show( false );
|
1
|
195 m_splitter->Initialize( m_panelL );
|
0
|
196 bSizerTop->Add( m_splitter, 1, wxEXPAND, 5 );
|
|
197
|
|
198 this->SetSizer( bSizerTop );
|
|
199 this->Layout();
|
|
200
|
|
201 // ステータスバー Statusbar
|
1
|
202 m_statusBar = new wxStatusBar( this, wxID_ANY, wxST_SIZEGRIP );
|
0
|
203 int widths[] = { 200, 100, -1, 90 };
|
1
|
204 m_statusBar->SetFieldsCount( 4, widths );
|
|
205 this->SetStatusBar( m_statusBar );
|
|
206 SetStatusText( wxT("被保番を入力してスタート!") );
|
0
|
207
|
|
208 this->Centre( wxBOTH );
|
1
|
209 LoadMaskParam();
|
0
|
210 }
|
|
211
|
|
212 MyFrame::~MyFrame()
|
|
213 {
|
|
214 }
|
|
215
|
|
216 // Event Table
|
|
217 BEGIN_EVENT_TABLE( MyFrame, wxFrame )
|
|
218 EVT_MENU( ID_MNABOUT, MyFrame::OnAbout )
|
|
219 EVT_MENU( wxID_EXIT, MyFrame::OnQuit )
|
|
220 EVT_MENU( ID_MNVIEW, MyFrame::OnViewMode )
|
|
221 EVT_MENU( ID_MNINDEX, MyFrame::OnIndex )
|
|
222 EVT_MENU( ID_MNMASKPARAM, MyFrame::OnMaskParam )
|
|
223 EVT_MENU( ID_MNAPPDIR, MyFrame::OnOpenAppDir )
|
|
224 EVT_LIST_ITEM_ACTIVATED( ID_LIST, MyFrame::OnOpenHhsDir )
|
|
225 EVT_BUTTON( ID_KANA, MyFrame::OnKana )
|
|
226 EVT_BUTTON( ID_HIST, MyFrame::OnHistory )
|
|
227 EVT_SIZE( MyFrame::OnWinSize )
|
|
228 EVT_MOVE( MyFrame::OnWinMove )
|
|
229 EVT_CLOSE( MyFrame::SaveConfig )
|
|
230 END_EVENT_TABLE()
|
|
231
|
|
232 // Event Handlers & Functions
|
|
233 /* インデックス作成ダイアログ */
|
|
234 void MyFrame::OnIndex( wxCommandEvent& WXUNUSED(event) )
|
|
235 {
|
|
236 IndexDialog* index = new IndexDialog( this, wxID_ANY, wxT("インデックス作成"), wxDefaultPosition, wxSize( 500, 600 ), wxCAPTION|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP|wxTAB_TRAVERSAL );
|
|
237 index->ShowWithEffect( wxSHOW_EFFECT_SLIDE_TO_BOTTOM );
|
|
238 index->ShowModal();
|
|
239 }
|
1
|
240 /* マスクパラメータを設定ファイルから読み込む */
|
|
241 void MyFrame::LoadMaskParam( void )
|
|
242 {
|
|
243 conf_file = wxGetCwd() + wxFILE_SEP_PATH + wxT("app.conf");
|
|
244 config = new wxFileConfig( wxT("MyApp"), wxT("T.Mutoh"), conf_file, wxEmptyString, wxCONFIG_USE_LOCAL_FILE );
|
|
245
|
|
246 int x, y, w, h;
|
|
247
|
|
248 config->SetPath( wxT("/Mask") );
|
|
249
|
|
250 config->Read( wxT("x1"), &x );
|
|
251 config->Read( wxT("y1"), &y );
|
|
252 config->Read( wxT("w1"), &w );
|
|
253 config->Read( wxT("h1"), &h );
|
|
254 m_mask1.SetPosition( wxPoint( x, y ) );
|
|
255 m_mask1.SetSize( wxSize( w, h ) );
|
|
256
|
|
257 config->Read( wxT("x2"), &x );
|
|
258 config->Read( wxT("y2"), &y );
|
|
259 config->Read( wxT("w2"), &w );
|
|
260 config->Read( wxT("h2"), &h );
|
|
261 m_mask2.SetPosition( wxPoint( x, y ) );
|
|
262 m_mask2.SetSize( wxSize( w, h ) );
|
|
263
|
|
264 config->Read( wxT("x3"), &x );
|
|
265 config->Read( wxT("y3"), &y );
|
|
266 config->Read( wxT("w3"), &w );
|
|
267 config->Read( wxT("h3"), &h );
|
|
268 m_mask3.SetPosition( wxPoint( x, y ) );
|
|
269 m_mask3.SetSize( wxSize( w, h ) );
|
|
270
|
|
271 }
|
0
|
272 /* マスクパラメータ設定ダイアログ */
|
|
273 void MyFrame::OnMaskParam( wxCommandEvent& WXUNUSED(event) )
|
|
274 {
|
|
275 MaskDialog* mask = new MaskDialog( this, wxID_ANY, wxT("マスク位置とサイズの指定"), wxDefaultPosition, wxSize( 400, 210 ), wxCAPTION|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP|wxTAB_TRAVERSAL );
|
1
|
276 mask->SetMask1( m_mask1 );
|
|
277 mask->SetMask2( m_mask2 );
|
|
278 mask->SetMask3( m_mask3 );
|
|
279 mask->LoadParams();
|
0
|
280 mask->ShowWithEffect( wxSHOW_EFFECT_SLIDE_TO_BOTTOM );
|
1
|
281
|
|
282 if ( mask->ShowModal() == wxID_OK ) {
|
|
283 m_mask1 = mask->GetMask1();
|
|
284 m_mask2 = mask->GetMask2();
|
|
285 m_mask3 = mask->GetMask3();
|
|
286
|
|
287 config->SetPath( wxT("/Mask") );
|
|
288
|
|
289 config->Write( wxT("x1"), m_mask1.GetX() );
|
|
290 config->Write( wxT("y1"), m_mask1.GetY() );
|
|
291 config->Write( wxT("w1"), m_mask1.GetWidth() );
|
|
292 config->Write( wxT("h1"), m_mask1.GetHeight() );
|
|
293
|
|
294 config->Write( wxT("x2"), m_mask2.GetX() );
|
|
295 config->Write( wxT("y2"), m_mask2.GetY() );
|
|
296 config->Write( wxT("w2"), m_mask2.GetWidth() );
|
|
297 config->Write( wxT("h2"), m_mask2.GetHeight() );
|
|
298
|
|
299 config->Write( wxT("x3"), m_mask3.GetX() );
|
|
300 config->Write( wxT("y3"), m_mask3.GetY() );
|
|
301 config->Write( wxT("w3"), m_mask3.GetWidth() );
|
|
302 config->Write( wxT("h3"), m_mask3.GetHeight() );
|
|
303
|
|
304 delete config;
|
|
305 }
|
0
|
306 }
|
|
307 /* アプリフォルダを開く */
|
|
308 void MyFrame::OnOpenAppDir( wxCommandEvent& WXUNUSED(event) )
|
|
309 {
|
|
310 wxString appdir = wxGetCwd();
|
|
311 wxString execmd = wxT("explorer ") + appdir;
|
|
312 wxExecute( execmd );
|
|
313 }
|
|
314 /* ビューモードの切替え */
|
|
315 void MyFrame::OnViewMode( wxCommandEvent& event )
|
|
316 {
|
|
317 if ( event.IsChecked() ) {
|
|
318 int x, y;
|
|
319 GetSize( &x, &y );
|
|
320 SetSize( WINL_W + 500, y );
|
|
321 m_splitter->SplitVertically( m_panelL, m_panelR, 0 );
|
|
322 }
|
|
323 else {
|
|
324 m_splitter->Unsplit();
|
|
325 SetSize( WINL_W, -1 );
|
|
326 }
|
|
327 }
|
|
328 /* 被保険者フォルダを開く */
|
|
329 void MyFrame::OnOpenHhsDir( wxListEvent& event )
|
|
330 {
|
|
331 wxString hhsdir;
|
|
332 /*
|
|
333 hhsdir = m_textCtrlDist->GetValue() + wxFILE_SEP_PATH;
|
|
334
|
|
335 int i = event.GetIndex();
|
|
336 wxListItem item;
|
|
337 item.SetId(i);
|
|
338
|
|
339 item.SetColumn(1);
|
|
340 item.SetMask(wxLIST_MASK_TEXT);
|
|
341 m_listCtrlHhsDir->GetItem( item );
|
|
342 hhsdir.Append( item.GetText() );
|
|
343
|
|
344 DirViewFrame* dvf = new DirViewFrame( (wxWindow*)this, wxID_ANY, wxEmptyString );
|
|
345 dvf->m_dir = hhsdir;
|
|
346 dvf->LoadListImage();
|
|
347 dvf->Show(true);
|
|
348 */
|
|
349 }
|
1
|
350
|
0
|
351 /* カナ検索ダイアログ */
|
|
352 void MyFrame::OnKana( wxCommandEvent& WXUNUSED(event) )
|
|
353 {
|
1
|
354 KanaDialog* kana = new KanaDialog( this, wxID_ANY, wxT("カナ氏名で被保番を検索"), wxDefaultPosition, wxSize( 600, 600 ), wxCAPTION|wxFRAME_NO_TASKBAR|wxRESIZE_BORDER|wxSTAY_ON_TOP|wxTAB_TRAVERSAL );
|
0
|
355 kana->ShowWithEffect( wxSHOW_EFFECT_SLIDE_TO_BOTTOM );
|
1
|
356
|
|
357 if ( kana->ShowModal() == wxID_OK ) {
|
|
358 wxMessageBox( kana->GetHhsNo() );
|
|
359 }
|
|
360
|
|
361 UpdateList();
|
0
|
362 }
|
|
363 /* 検索履歴検索ダイアログ */
|
|
364 void MyFrame::OnHistory( wxCommandEvent& WXUNUSED(event) )
|
|
365 {
|
|
366 HistDialog* hist = new HistDialog( this, wxID_ANY, wxT("検索履歴"), wxDefaultPosition, wxSize( 550, 500 ), wxCAPTION|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP|wxTAB_TRAVERSAL );
|
|
367 hist->ShowWithEffect( wxSHOW_EFFECT_SLIDE_TO_BOTTOM );
|
1
|
368
|
|
369 if ( hist->ShowModal() == wxID_OK ) {
|
|
370
|
|
371 }
|
|
372
|
|
373 UpdateList();
|
|
374 }
|
|
375
|
|
376 /* 検索結果をリストアップ */
|
|
377 void MyFrame::UpdateList( void )
|
|
378 {
|
|
379 m_listCtrl->DeleteAllItems();
|
|
380 }
|
|
381
|
|
382 /* ステータスバーにメッセージを出力 */
|
|
383 void MyFrame::SetStatusMessage( wxString msg, long n )
|
|
384 {
|
|
385 if ( GetStatusBar() )
|
|
386 SetStatusText( msg, n );
|
0
|
387 }
|
|
388
|
|
389 /* サイズ変更 */
|
|
390 void MyFrame::OnWinSize( wxSizeEvent& event )
|
|
391 {
|
|
392 this->Refresh( true, NULL );
|
|
393 TellLocation();
|
|
394 event.Skip();
|
|
395 }
|
|
396 /* ウィンドウ移動 */
|
|
397 void MyFrame::OnWinMove( wxMoveEvent& WXUNUSED(event) )
|
|
398 {
|
|
399 TellLocation();
|
|
400 return;
|
|
401 }
|
|
402 /* ウィンドウ位置とサイズを表示 */
|
|
403 void MyFrame::TellLocation( void )
|
|
404 {
|
|
405 wxRect r = this->GetRect();
|
|
406 int x = r.GetX();
|
|
407 int y = r.GetY();
|
|
408 int w = r.GetWidth();
|
|
409 int h = r.GetHeight();
|
1
|
410
|
|
411 if ( GetStatusBar() )
|
|
412 SetStatusText( wxString::Format(wxT( "(%d,%d) %dx%d"),x,y,w,h ), 3 );
|
0
|
413 }
|
|
414 /* 終了 */
|
|
415 void MyFrame::OnQuit( wxCommandEvent& WXUNUSED(event) )
|
|
416 {
|
|
417 Close( true );
|
|
418 }
|
|
419 /* 設定を保存 */
|
|
420 void MyFrame::SaveConfig( wxCloseEvent& WXUNUSED(event) )
|
|
421 {
|
|
422 if ( !IsIconized() && !IsMaximized() ) {
|
|
423 wxGetApp().rect = this->GetRect();
|
|
424 }
|
|
425 Destroy();
|
|
426 }
|
|
427 /* アバウトダイアログ */
|
|
428 void MyFrame::OnAbout( wxCommandEvent& WXUNUSED(event) )
|
|
429 {
|
|
430 AboutDialog* aboutDlg = new AboutDialog( this, wxID_ANY, wxT("About this Software"), wxDefaultPosition, wxSize(320,280), wxDEFAULT_DIALOG_STYLE|wxSTAY_ON_TOP );
|
|
431 aboutDlg->ShowModal();
|
|
432 }
|
|
433
|