[previous] [up] [next]     [contents] [index]
Next: set-label Up: wx:button Previous: wx:button

set-default

Sets this button to be the default item for its panel or dialog box.

Under Windows, only dialog box buttons respond to this function. As normal under Windows and X Windows, pressing return causes the default button to be depressed when the return key is pressed. See also set-focus which sets the keyboard focus for windows and text panel items, on-default-action and get-default-item.

Note that under X Windows, calling this function immediately after creation of a button and before the creation of other buttons may cause misalignment of the row of buttons, since default buttons are larger. To get around this, call set-default after you have created a row of buttons: Motif will then set the size of all buttons currently on the panel to the same size.



PLT