void OnDefaultAction(wxItem *item)
Called when the user initiates the default action for a panel or dialog box, for example by double clicking on a listbox. item is the panel item which caused the default action.
The default behaviour for this member is to retrieve the default button for the panel, and send it a command event, as if the user had clicked on the button. This gives default listbox double-click behaviour under Motif and Windows 3. The default code is as follows:
void wxbPanel::OnDefaultAction(wxItem *initiatingItem) { wxButton *but = GetDefaultItem(); if (but) { wxCommandEvent event(wxEVENT_TYPE_BUTTON_COMMAND); but->Command(event); } }