Inherited by WidgetButton, WidgetCheckBox, WidgetComboBox, WidgetCoolbar, WidgetDataGrid, WidgetDateTimePicker, WidgetGroupBox, WidgetMDIParent, WidgetProgressBar, WidgetRadioButton, WidgetSlider, WidgetSpinner, WidgetSplitter, WidgetStatic, WidgetStatusBar, WidgetTabSheet, WidgetTextBox, WidgetTextBox< EventHandlerClass, MessageMapPolicy >, WidgetTextBox< EventHandlerClass, MessageMapPolicy, SmartWin::RichTextBox< EventHandlerClass, MessageMapPolicy > >, WidgetTextBox< Parent, MessageMapPolicy >, WidgetToolbar, WidgetTreeView, WidgetWindowBase, WidgetWindowBase< EventHandlerClass, SmartWin::MessageMapPolicyDialogWidget >, WidgetWindowBase< EventHandlerClass, SmartWin::MessageMapPolicyModalDialogWidget >, and WidgetWindowBase< EventHandlerClass, unUsed >.
Public Member Functions | |
bool | getVisible () const |
Retrieves the visible property of the Widget. | |
void | onVisibilityChanged (typename MessageMapType::itsVoidFunctionTakingBool eventHandler) |
Setting the event handler for the "visible" event. | |
void | setVisible (bool visible) |
Sets the visibility property of the Widget. |
E.g. the WidgetDataGrid have a Visibility Aspect to it therefore WidgetDataGrid realizes AspectVisible through inheritance.
Most Widgets realize this Aspect since they can become visible and invisible. When the visibilty state of the Widget changes in one way or another the visible event is raised.
Use the onVisibilityChanged function to set an event handler for trapping this event.
bool getVisible | ( | ) | const |
void setVisible | ( | bool | visible | ) |