Contents Up Previous Next

wxButton is-a wxItem

A wxButton is a rectangular control which can be placed on a wxPanel to invoke a command.

wxButton bitmap
wxButton create


wxButton bitmap

wxBitmap bitmap

The bitmap associated with a wxButton, if being used as a bitmap button.


wxButton create

void ( create)

Creates a label or bitmap button on the given panel. If the bitmap slot is initialized, the button will be created from the bitmap. Otherwise, a text button will be created, using label for the label.

The following slots may be used in initializing a wxButton instance:

When the button is pressed, the on-command message will be sent to the wxButton; if there is no default handler, it will be passed to the wxButton's parent, and then to the parent's parent. See wxCommandEvent for a list of event types associated with wxCommandEvent.