wxButton::wxButton

void wxButton(wxPanel *parent, wxFunction func, char *label, int x = -1, int y = -1, int width = -1, int height = -1, int style = 0, char *name = "button")

void wxButton(wxPanel *parent, wxFunction func, wxBitmap *wxBitmap, int x = -1, int y = -1, int width = -1, int height = -1, int style = 0, char *name = "button")

Constructor, creating and showing a button. The parent must be a valid panel or dialog box pointer.

func may be NULL; otherwise it is used as the callback for the button. Note that the cast (wxFunction) must be used when passing your callback function name, or the compiler may complain that the function does not match the constructor declaration. See wxFunction.

The parameters x and y are used to specify an absolute position, or a position after the previous panel item if omitted or default.

If width or height are omitted (or are less than zero), an appropriate size will be used for the item. The style parameter is reserved for future use. The name parameter is used to associate a name with the item, allowing the application user to set Motif resource values for individual buttons.

If the first form is used, the label will be shown on the button. If the seond form is used, the bitmap will be used (not yet implemented).