- mwxButtonRun = new wxBitmapButton( btnsCtrlPanel,ID_ButtonRun,bmp_run);//_T("Run") );
- btnsSizer->Add( mwxButtonRun );
- wxBitmap bmp_quit(cc_exit_xpm);
- mwxButtonQuit = new wxBitmapButton( btnsCtrlPanel,ID_ButtonQuit,bmp_quit);//_T("Quit") );
- btnsSizer->Add( mwxButtonQuit );
- */
-
- mwxPosition = new wxStaticText ( btnsCtrlPanel, -1, _T(""));
- btnsSizer->Add( mwxPosition );
+ */
+ wxBitmap bmp_new(new_xpm);
+ wxBitmap bmp_open(fileopen_xpm);
+ wxBitmap bmp_close(eldel_xpm);
+ wxBitmap bmp_save(filesave_xpm);
+ wxBitmap bmp_saveas(filesaveas_xpm);
+ wxBitmap bmp_run(down_xpm);
+
+ mwxToolBar = new wxToolBar(this, wxID_ANY,
+ wxDefaultPosition, wxDefaultSize,
+ wxTB_FLAT | wxTB_NODIVIDER);
+
+ mwxToolBar->AddTool(ID_ButtonNew, _T("New"),
+ bmp_new, wxNullBitmap, wxITEM_NORMAL,
+ _T("New file"), _T("Create a new file"));
+ mwxToolBar->AddTool(ID_ButtonOpen, _T("Open"),
+ bmp_open, wxNullBitmap, wxITEM_NORMAL,
+ _T("Open file"), _T("This is help for new file tool"));
+ mwxToolBar->AddTool(ID_ButtonClose, _T("Close"),
+ bmp_close, wxNullBitmap, wxITEM_NORMAL,
+ _T("Close file"), _T("Close current file"));
+ mwxToolBar->AddTool(ID_ButtonSave, _T("New"),
+ bmp_save, wxNullBitmap, wxITEM_NORMAL,
+ _T("Save file"), _T("Save current file"));
+ mwxToolBar->AddTool(ID_ButtonSaveAs, _T("New"),
+ bmp_saveas, wxNullBitmap, wxITEM_NORMAL,
+ _T("Save file as"), _T("Save current file as"));
+ mwxToolBar->AddTool(ID_ButtonRun, _T("Run"),
+ bmp_run, wxNullBitmap, wxITEM_NORMAL,
+ _T("Run file"), _T("Run current file"));
+
+ mwxToolBar->AddSeparator();
+ mwxPosition = new wxStaticText ( mwxToolBar, -1, _T(""));
+ mwxToolBar->AddControl(mwxPosition);
+ mwxToolBar->Realize();
+
+ sizer->Add(mwxToolBar,0,wxGROW);
+
+ /*
+ m_mgr.AddPane(mwxToolBar,
+ wxAuiPaneInfo().Name(wxT("toolBar"))
+ .Caption(wxT(""))
+ .ToolbarPane()
+ .Bottom()
+ .MinSize(wxSize(100,50))
+ .LeftDockable(false).RightDockable(false)
+ );
+*/
+ SetSizer(sizer);
+