EZ
Up Prev Next Contents


3.3 Normal Buttons

Normal buttons are also refered to as push buttons. They are similar to labels in appearance except they respond to the mouse or keyboard.

When the pointer is over a push button, the button becomes highlighted. This highlighting indicates that the button is ready for selection. When mouse button 1 (left button) is pressed, the push button indicates that it has been selected by changing its border to make it look pressed down. When the mouse button is released over the button, the buttons callbacks are invoked. If the pointer is moved off of the button before the pointer button is released, the button reverts to its normal appearance, and releasing the mouse button has no effect. This behavior allows the user to cancel an action.

If a push button is configured with a keyboard accelerator, it can also be invoked by typing the correspoing key strokes.

To create a normal button, use EZ_CreateWidget with type EZ_WIDGET_NORMAL_BUTTON or use the next function.

void EZ_CreateButton(EZ_Widget *parent, char *label,

int underline)


HTML Documentation Maintainance:Arturo Espinosa <arturo@nuclecu.unam.mx>