- wxMenu *fileMenu = new wxMenu;
- fileMenu->Append(SPLIT_VERTICAL, _T("Split &Vertically\tCtrl-V"), _T("Split vertically"));
- fileMenu->Append(SPLIT_HORIZONTAL, _T("Split &Horizontally\tCtrl-H"), _T("Split horizontally"));
- fileMenu->Append(SPLIT_UNSPLIT, _T("&Unsplit\tCtrl-U"), _T("Unsplit"));
- fileMenu->AppendSeparator();
- fileMenu->Append(SPLIT_LIVE, _T("&Live update"), _T("Toggle live update mode"), TRUE);
- fileMenu->Append(SPLIT_SETMINSIZE, _T("Set &min size"), _T("Set minimum pane size"));
- fileMenu->AppendSeparator();
- fileMenu->Append(SPLIT_QUIT, _T("E&xit\tAlt-X"), _T("Exit"));
+ wxMenu *splitMenu = new wxMenu;
+ splitMenu->Append(SPLIT_VERTICAL,
+ wxT("Split &Vertically\tCtrl-V"),
+ wxT("Split vertically"));
+ splitMenu->Append(SPLIT_HORIZONTAL,
+ wxT("Split &Horizontally\tCtrl-H"),
+ wxT("Split horizontally"));
+ splitMenu->Append(SPLIT_UNSPLIT,
+ wxT("&Unsplit\tCtrl-U"),
+ wxT("Unsplit"));
+ splitMenu->AppendCheckItem(SPLIT_INVISIBLE,
+ wxT("Toggle sash &invisibility\tCtrl-I"),
+ wxT("Toggle sash invisibility"));
+ splitMenu->AppendSeparator();
+
+ splitMenu->AppendCheckItem(SPLIT_LIVE,
+ wxT("&Live update\tCtrl-L"),
+ wxT("Toggle live update mode"));
+ splitMenu->AppendCheckItem(SPLIT_BORDER,
+ wxT("3D &Border"),
+ wxT("Toggle wxSP_BORDER flag"));
+ splitMenu->Check(SPLIT_BORDER, true);
+ splitMenu->AppendCheckItem(SPLIT_3DSASH,
+ wxT("&3D Sash"),
+ wxT("Toggle wxSP_3DSASH flag"));
+ splitMenu->Check(SPLIT_3DSASH, true);
+ splitMenu->Append(SPLIT_SETPOSITION,
+ wxT("Set splitter &position\tCtrl-P"),
+ wxT("Set the splitter position"));
+ splitMenu->Append(SPLIT_SETMINSIZE,
+ wxT("Set &min size\tCtrl-M"),
+ wxT("Set minimum pane size"));
+ splitMenu->Append(SPLIT_SETGRAVITY,
+ wxT("Set &gravity\tCtrl-G"),
+ wxT("Set gravity of sash"));
+ splitMenu->AppendSeparator();
+
+ splitMenu->Append(SPLIT_REPLACE,
+ wxT("&Replace right window"),
+ wxT("Replace right window"));
+ splitMenu->AppendSeparator();
+
+ splitMenu->Append(SPLIT_QUIT, wxT("E&xit\tAlt-X"), wxT("Exit"));