Add accelerators for toolbar positioning menu items in the sample
This makes it much more convenient to quickly test different toolbar orientations.
This commit is contained in:
@@ -574,16 +574,16 @@ MyFrame::MyFrame(wxFrame* parent,
|
|||||||
|
|
||||||
tbarMenu->AppendSeparator();
|
tbarMenu->AppendSeparator();
|
||||||
tbarMenu->AppendRadioItem(IDM_TOOLBAR_TOP_ORIENTATION,
|
tbarMenu->AppendRadioItem(IDM_TOOLBAR_TOP_ORIENTATION,
|
||||||
"Set toolbar at the top of the window",
|
"Set toolbar at the top of the window\tCtrl-Up",
|
||||||
"Set toolbar at the top of the window");
|
"Set toolbar at the top of the window");
|
||||||
tbarMenu->AppendRadioItem(IDM_TOOLBAR_LEFT_ORIENTATION,
|
tbarMenu->AppendRadioItem(IDM_TOOLBAR_LEFT_ORIENTATION,
|
||||||
"Set toolbar at the left of the window",
|
"Set toolbar at the left of the window\tCtrl-Left",
|
||||||
"Set toolbar at the left of the window");
|
"Set toolbar at the left of the window");
|
||||||
tbarMenu->AppendRadioItem(IDM_TOOLBAR_BOTTOM_ORIENTATION,
|
tbarMenu->AppendRadioItem(IDM_TOOLBAR_BOTTOM_ORIENTATION,
|
||||||
"Set toolbar at the bottom of the window",
|
"Set toolbar at the bottom of the window\tCtrl-Down",
|
||||||
"Set toolbar at the bottom of the window");
|
"Set toolbar at the bottom of the window");
|
||||||
tbarMenu->AppendRadioItem(IDM_TOOLBAR_RIGHT_ORIENTATION,
|
tbarMenu->AppendRadioItem(IDM_TOOLBAR_RIGHT_ORIENTATION,
|
||||||
"Set toolbar at the right edge of the window",
|
"Set toolbar at the right edge of the window\tCtrl-Right",
|
||||||
"Set toolbar at the right edge of the window");
|
"Set toolbar at the right edge of the window");
|
||||||
tbarMenu->AppendSeparator();
|
tbarMenu->AppendSeparator();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user