]> Creatis software - bbtkGEditor.git/commitdiff
*** empty log message ***
authordavila <>
Tue, 7 Sep 2010 22:55:54 +0000 (22:55 +0000)
committerdavila <>
Tue, 7 Sep 2010 22:55:54 +0000 (22:55 +0000)
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxBlackBoxEditionDialog.cxx

index e2618fa3d2e6341f0b92ff6ac3f2782da106565e..f8eaac2724213ac6e1ada1f4ddddac67455ea410 100644 (file)
@@ -113,12 +113,12 @@ namespace bbtk
                }
                
                wxBoxSizer *buts = new wxBoxSizer(wxHORIZONTAL);
-               wxButton *okButton = new wxButton(this, 1003, _T("Ok"),wxDefaultPosition, wxSize(70, 30));
-               wxButton *closeButton = new wxButton(this, 1004, _T("Close"), wxDefaultPosition, wxSize(70, 30));
+               wxButton *okButton = new wxButton(this, -1, _T("Ok"),wxDefaultPosition, wxSize(70, 30));
+               wxButton *closeButton = new wxButton(this, -1, _T("Close"), wxDefaultPosition, wxSize(70, 30));
 
                // connect command event handlers
-               Connect(1003,wxEVT_COMMAND_BUTTON_CLICKED,wxCommandEventHandler(wxBlackBoxEditionDialog::onClickOk));
-               Connect(1004,wxEVT_COMMAND_BUTTON_CLICKED,wxCommandEventHandler(wxBlackBoxEditionDialog::onClickClose));
+               Connect(okButton->GetId(),wxEVT_COMMAND_BUTTON_CLICKED,wxCommandEventHandler(wxBlackBoxEditionDialog::onClickOk));
+               Connect(closeButton->GetId(),wxEVT_COMMAND_BUTTON_CLICKED,wxCommandEventHandler(wxBlackBoxEditionDialog::onClickClose));
                
                buts->Add(okButton,0,wxCENTRE|wxEXPAND,5);
                buts->Add(closeButton,0,wxCENTRE|wxEXPAND,5);