AspectEnabled Class Template Reference
[Aspect Classes]

property More...

Inherited by WidgetButton, WidgetCheckBox, WidgetComboBox, WidgetCoolbar, WidgetDataGrid, WidgetDateTimePicker, WidgetGroupBox, WidgetMDIParent, WidgetRadioButton, WidgetSlider, WidgetSpinner, WidgetStatic, 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 getEnabled () const
 Retrieves the enabled property of the Widget.
void onEnabled (typename MessageMapType::itsVoidFunctionTakingBool eventHandler)
 Setting the event handler for the "enabled" event.
void setEnabled (bool enabled)
 Sets the enabled property of the Widget.


Detailed Description

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

property

The WidgetDataGrid has an enabled Aspect to it; therefore it realizes this AspectEnabled through inheritance.
When a Widget is enabled it is possible to interact with it in some way, e.g. a button can be pushed, a ComboBox can change value etc. When the Widget is not enabled it cannot change its "value" or be interacted with but is normally still visible.


Member Function Documentation

bool getEnabled (  )  const

Retrieves the enabled property of the Widget.

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

void setEnabled ( bool  enabled  ) 

Sets the enabled property of the Widget.

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

Back to SmartWin website
SourceForge.net Logo