- wxBitmap* bitmaps[8];
-
- bitmaps[0] = new wxBitmap( new_xpm );
- bitmaps[1] = new wxBitmap( open_xpm );
- bitmaps[2] = new wxBitmap( save_xpm );
- bitmaps[3] = new wxBitmap( copy_xpm );
- bitmaps[4] = new wxBitmap( cut_xpm );
- bitmaps[5] = new wxBitmap( paste_xpm );
- bitmaps[6] = new wxBitmap( print_xpm );
- bitmaps[7] = new wxBitmap( help_xpm );
-
- int width = 24;
- int currentX = 5;
-
- toolBar->AddTool( MDI_NEW_WINDOW, *(bitmaps[0]), wxNullBitmap, FALSE, currentX, -1, (wxObject *) NULL, _T("New file"));
- currentX += width + 5;
- toolBar->AddTool(1, *bitmaps[1], wxNullBitmap, FALSE, currentX, -1, (wxObject *) NULL, _T("Open file"));
- currentX += width + 5;
- toolBar->AddTool(2, *bitmaps[2], wxNullBitmap, FALSE, currentX, -1, (wxObject *) NULL, _T("Save file"));
- currentX += width + 5;
+ wxBitmap bitmaps[8];
+
+ bitmaps[0] = wxBitmap( new_xpm );
+ bitmaps[1] = wxBitmap( open_xpm );
+ bitmaps[2] = wxBitmap( save_xpm );
+ bitmaps[3] = wxBitmap( copy_xpm );
+ bitmaps[4] = wxBitmap( cut_xpm );
+ bitmaps[5] = wxBitmap( paste_xpm );
+ bitmaps[6] = wxBitmap( print_xpm );
+ bitmaps[7] = wxBitmap( help_xpm );
+
+ toolBar->AddTool(MDI_NEW_WINDOW, _T("New"), bitmaps[0], _T("New file"));
+ toolBar->AddTool(1, _T("Open"), bitmaps[1], _T("Open file"));
+ toolBar->AddTool(2, _T("Save"), bitmaps[2], _T("Save file"));