wxAcceleratorEntry

An object used by an application wishing to create an accelerator table.

Derived from

None

Include files

<wx/accel.h>

See also

wxAcceleratorTable, wxWindow::SetAcceleratorTable



wxAcceleratorEntry::wxAcceleratorEntry



wxAcceleratorEntry(void)

Default constructor.



wxAcceleratorEntry(int flags, int keyCode, int cmd)

Constructor.

Parameters

flags
One of wxACCEL_ALT, wxACCEL_SHIFT, wxACCEL_CTRL and wxACCEL_NORMAL. Indicates which modifier key is held down.

keyCode
The keycode to be detected. See Keycodes for a full list of keycodes.

cmd
The menu or control command identifier.



wxAcceleratorEntry::GetCommand

int GetCommand(void) const

Returns the command identifier for the accelerator table entry.



wxAcceleratorEntry::GetFlags

int GetFlags(void) const

Returns the flags for the accelerator table entry.



wxAcceleratorEntry::GetKeyCode

int GetKeyCode(void) const

Returns the keycode for the accelerator table entry.



wxAcceleratorEntry::Set



void Set(int flags, int keyCode, int cmd)

Sets the accelerator entry parameters.

Parameters

flags
One of wxACCEL_ALT, wxACCEL_SHIFT, wxACCEL_CTRL and wxACCEL_NORMAL. Indicates which modifier key is held down.

keyCode
The keycode to be detected. See Keycodes for a full list of keycodes.

cmd
The menu or control command identifier.

ymasuda 平成17年11月19日