AspectVisible Class Template Reference
[Aspect Classes]

visibility property More...

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 >.

List of all members.

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.


Detailed Description

template<class EventHandlerClass, class WidgetType, class MessageMapType>
class SmartWin::AspectVisible< EventHandlerClass, WidgetType, MessageMapType >

visibility property

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.


Member Function Documentation

bool getVisible (  )  const

Retrieves the visible property of the Widget.

Use this function to check if the Widget is visible or not.
If the Widget is visible this function will return true.

void setVisible ( bool  visible  ) 

Sets the visibility property of the Widget.

Changes the visibility property of the Widget.
Use this function to change the visibility property of the Widget

Back to SmartWin website
SourceForge.net Logo