enum
{
- CONTROLS_QUIT = 100,
- CONTROLS_TEXT,
- CONTROLS_ABOUT,
+ CONTROLS_QUIT = wxID_EXIT,
+ CONTROLS_ABOUT = wxID_ABOUT,
+ CONTROLS_TEXT = 100,
CONTROLS_CLEAR_LOG,
// tooltip menu
#if wxUSE_GRID
#define FILE_DBGRID_TABLE 130
#endif
-#define FILE_EXIT 199
+#define FILE_EXIT wxID_EXIT
#define EDIT_PARAMETERS 200
-#define HELP_ABOUT 300
+#define HELP_ABOUT wxID_ABOUT
// this seems to be missing, Robert Roebling (?)
#ifndef MAX_PATH
extern MyFrame *GetMainFrame(void);
#define DOCVIEW_CUT 1
-#define DOCVIEW_ABOUT 2
+#define DOCVIEW_ABOUT wxID_ABOUT
extern bool singleWindowMode;
extern MyFrame *GetMainFrame(void);
#define DOCVIEW_CUT 1
-#define DOCVIEW_ABOUT 2
+#define DOCVIEW_ABOUT wxID_ABOUT
extern bool singleWindowMode;
};
// ID for the menu commands
-#define DYNAMIC_QUIT 1
+#define DYNAMIC_QUIT wxID_EXIT
#define DYNAMIC_TEXT 101
-#define DYNAMIC_ABOUT 102
+#define DYNAMIC_ABOUT wxID_ABOUT
// Create a new application object
IMPLEMENT_APP (MyApp)
EVT_MENU( ID_SET_CELL_FG_COLOUR, GridFrame::SetCellFgColour )
EVT_MENU( ID_SET_CELL_BG_COLOUR, GridFrame::SetCellBgColour )
- EVT_MENU( ID_ABOUT, GridFrame::About )
+ EVT_MENU( wxID_ABOUT, GridFrame::About )
EVT_MENU( wxID_EXIT, GridFrame::OnQuit )
EVT_MENU( ID_VTABLE, GridFrame::OnVTable)
EVT_MENU( ID_BUGS_TABLE, GridFrame::OnBugsTable)
wxMenu *helpMenu = new wxMenu;
- helpMenu->Append( ID_ABOUT, _T("&About wxGrid demo") );
+ helpMenu->Append( wxID_ABOUT, _T("&About wxGrid demo") );
wxMenuBar *menuBar = new wxMenuBar;
menuBar->Append( fileMenu, _T("&File") );
ID_SELCOLS,
ID_SET_CELL_FG_COLOUR,
ID_SET_CELL_BG_COLOUR,
- ID_ABOUT,
ID_VTABLE,
ID_BUGS_TABLE,
ID_SMALL_GRID,
enum
{
- ID_QUIT = 108,
- ID_ABOUT,
- ID_NEW,
- ID_SHOWRAW
+ ID_QUIT = wxID_EXIT,
+ ID_ABOUT = wxID_ABOUT,
+ ID_NEW = 100,
+ ID_SHOWRAW = 101
};
IMPLEMENT_DYNAMIC_CLASS( MyFrame, wxFrame )
// controls and menu constants
enum
{
- LAYOUT_QUIT = 100,
- LAYOUT_ABOUT,
- LAYOUT_TEST_SIZER,
- LAYOUT_TEST_NB_SIZER,
- LAYOUT_TEST_GB_SIZER
+ LAYOUT_QUIT = wxID_EXIT,
+ LAYOUT_ABOUT = wxID_ABOUT,
+ LAYOUT_TEST_SIZER = 101,
+ LAYOUT_TEST_NB_SIZER = 102,
+ LAYOUT_TEST_GB_SIZE = 103
};
// menu items ids
enum
{
- MDI_QUIT = 100,
- MDI_NEW_WINDOW,
+ MDI_QUIT = wxID_EXIT,
+ MDI_NEW_WINDOW = 101,
MDI_REFRESH,
MDI_CHANGE_TITLE,
MDI_CHANGE_POSITION,
MDI_CHANGE_SIZE,
MDI_CHILD_QUIT,
- MDI_ABOUT
+ MDI_ABOUT = wxID_ABOUT
};
DECLARE_EVENT_TABLE()
};
-#define SASHTEST_QUIT 1
+#define SASHTEST_QUIT wxID_EXIT
#define SASHTEST_NEW_WINDOW 2
#define SASHTEST_REFRESH 3
#define SASHTEST_CHILD_QUIT 4
-#define SASHTEST_ABOUT 5
+#define SASHTEST_ABOUT wxID_ABOUT
#define SASHTEST_TOGGLE_WINDOW 6
#define ID_WINDOW_TOP 100
// MyFrame
// ----------------------------------------------------------------------------
-const long ID_QUIT = wxNewId();
-const long ID_ABOUT = wxNewId();
-const long ID_DELETE_ALL = wxNewId();
-const long ID_INSERT_NEW = wxNewId();
+const long ID_QUIT = wxID_EXIT;
+const long ID_ABOUT = wxID_ABOUT;
+const long ID_DELETE_ALL = 100;
+const long ID_INSERT_NEW = 101;
IMPLEMENT_DYNAMIC_CLASS( MyFrame, wxFrame )
// MyFrame
-const int ID_QUIT = 108;
+const int ID_QUIT = wxID_EXIT;
const int ID_FULL = 109;
-const int ID_ABOUT = 110;
+const int ID_ABOUT = wxID_ABOUT;
IMPLEMENT_DYNAMIC_CLASS( MyFrame, wxFrame )
enum
{
// menu items
- CLIENT_QUIT = 1000,
- CLIENT_ABOUT,
- CLIENT_OPEN,
+ CLIENT_QUIT = wxID_EXIT,
+ CLIENT_ABOUT = wxID_ABOUT,
+ CLIENT_OPEN = 100,
CLIENT_TEST1,
CLIENT_TEST2,
CLIENT_TEST3,
enum
{
// menu items
- SERVER_QUIT = 1000,
- SERVER_ABOUT,
+ SERVER_QUIT = wxID_EXIT,
+ SERVER_ABOUT = wxID_ABOUT,
// id for sockets
- SERVER_ID,
+ SERVER_ID = 100,
SOCKET_ID
};
enum
{
- TEXT_QUIT = 100,
- TEXT_ABOUT,
- TEXT_LOAD,
+ TEXT_QUIT = wxID_EXIT,
+ TEXT_ABOUT = wxID_ABOUT,
+ TEXT_LOAD = 101,
TEXT_SAVE,
TEXT_CLEAR,
TEXT_RICH_TEXT_TEST,
// ID for the menu commands
enum
{
- THREAD_QUIT = 1,
+ THREAD_QUIT = wxID_EXIT,
+ THREAD_ABOUT = wxID_ABOUT,
THREAD_TEXT = 101,
THREAD_CLEAR,
THREAD_START_THREAD = 201,
THREAD_EXEC_THREAD,
THREAD_SHOWCPUS,
- THREAD_ABOUT,
WORKER_EVENT // this one gets sent from the worker thread
};
{
TYPES_QUIT = wxID_EXIT,
TYPES_TEXT = 101,
- TYPES_ABOUT,
+ TYPES_ABOUT = wxID_ABOUT,
- TYPES_DATE,
+ TYPES_DATE = 102,
TYPES_TIME,
TYPES_VARIANT,
TYPES_BYTEORDER,
enum
{
// menu items
- VScroll_Quit = 1,
+ VScroll_Quit = wxID_EXIT,
// it is important for the id corresponding to the "About" command to have
// this standard value as otherwise it won't be handled properly under Mac