EZ
Up Prev Next Contents


2.9.3 Disable a Widget

EZwgl provides two pairs of routines to control the state of EZ widgets.

void EZ_DisableWidget(EZ_Widget *widget)

This function disable a widget. A disabled widget will no longer handle events except Expose. For button type widgets, disabled widgets are displayed use a different face.

void EZ_EnableWidget(EZ_Widget *widget)

This function enables a disabled widget. It has no effect if the widget is currently enabled.

void EZ_DeActivateWidget(EZ_Widget *widget)

This function removes a widget from display if it is currently viewable; or refrains the widget from being displayed by EZ_DisplayWidget if it is not currently viewable. However, the data structure associated to the widget is still retained.

void EZ_ActivateWidget(EZ_Widget *widget)

If a widget is currently de-activated, this function re-activated it. It has no effect on widgets that are currently active.


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