Contents Up Previous Next

wxKeyBinder

To use wxKeyBinder, add command groups to it, then use "PushEventHandler()" for hooking it to a window or control. After that, key events will automatically be translated into wxMenu events for that window, if binding is present.

Derived from

wxEvtHandler

Data structures

Members

wxKeyBinder::wxKeyBinder
wxKeyBinder::~wxKeyBinder
wxKeyBinder::AddGroup
wxKeyBinder::AddGroups
wxKeyBinder::AssignFrom
wxKeyBinder::Clone
wxKeyBinder::CreateMenuBar
wxKeyBinder::CreateMenusRecursively
wxKeyBinder::FindCommandById
wxKeyBinder::GetGroups
wxKeyBinder::OnChar
wxKeyBinder::OnClose
wxKeyBinder::RemoveGroup
wxKeyBinder::ResetUserData
wxKeyBinder::UpdateHashForCommand
wxKeyBinder::UpdateHashForCommands
wxKeyBinder::UpdateKeyAssignments


wxKeyBinder::wxKeyBinder

wxKeyBinder()


wxKeyBinder::~wxKeyBinder

~wxKeyBinder()


wxKeyBinder::AddGroup

void AddGroup(wxCommandGroup* pGroup)


wxKeyBinder::AddGroups

void AddGroups(wxCommandGroup* pGroups)

pGroups is C-array, where command object with empty title ("") indicates the end of the list


wxKeyBinder::AssignFrom

void AssignFrom(wxKeyBinder& other)


wxKeyBinder::Clone

wxKeyBinder* Clone()


wxKeyBinder::CreateMenuBar

void CreateMenuBar(wxFrame* pForWindow)

changes to commands were made externally (e.g. customization dialog)


wxKeyBinder::CreateMenusRecursively

void CreateMenusRecursively(wxCommandInfoListT& lst, wxMenuBar* pBar, wxMenu* pMenu, bool topLevel)


wxKeyBinder::FindCommandById

wxCommandInfo* FindCommandById(int id)


wxKeyBinder::GetGroups

wxCommandInfoListT& GetGroups()


wxKeyBinder::OnChar

void OnChar(wxKeyEvent& event)

event-handlers **


wxKeyBinder::OnClose

void OnClose(wxCloseEvent& event)


wxKeyBinder::RemoveGroup

void RemoveGroup(wxCommandGroup* pGroup)


wxKeyBinder::ResetUserData

void ResetUserData()


wxKeyBinder::UpdateHashForCommand

void UpdateHashForCommand(wxCommandInfo& cmd)


wxKeyBinder::UpdateHashForCommands

void UpdateHashForCommands(wxCommandInfoListT& lst)


wxKeyBinder::UpdateKeyAssignments

void UpdateKeyAssignments()

recreates key-hash after,