Contents Up Previous Next

wxItem is-a wxWindow

A panel item is a control (or widget) that can be placed on a wxPanel or wxDialogBox to accept user input, and display information.

The following functions apply to panel items, which include wxButton, wxCheckbox, wxChoice, wxMessage, wxText, wxMultiText, wxSlider.

wxItem get-label
wxItem on-command
wxItem set-default
wxItem set-label


wxItem get-label

string ( get-label)

Get the item's label.


wxItem on-command

void ( on-command wxItem item wxCommandEvent command-event)

An item receives this message in response to a command (such as a button press). If this handler is not overriden, then on-command is sent to the item's parent panel. It is usually more convenient to override this handler for a panel rather than per panel item.

See wxcommandevent for a list of event types associated with wxCommandEvent.


wxItem set-default

bool ( set-default)

Make this item the default.


wxItem set-label

bool ( set-label string label)

Set the item's label.