AspectActivate Class Template Reference
[Aspect Classes]

Aspect class used by Widgets that can be activated. More...

Inherited by WidgetWindowBase, WidgetWindowBase< EventHandlerClass, SmartWin::MessageMapPolicyDialogWidget >, WidgetWindowBase< EventHandlerClass, SmartWin::MessageMapPolicyModalDialogWidget >, and WidgetWindowBase< EventHandlerClass, unUsed >.

List of all members.

Public Member Functions

bool getActive () const
 Retrieves the activated property of the Widget.
void onActivate (typename MessageMapType::itsVoidFunctionTakingBool eventHandler)
 Setting the member event handler for the "activated" event.
void setActive ()
 Activates the Widget.


Detailed Description

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

Aspect class used by Widgets that can be activated.

When a Widget is being activated it means that it becomes the "active" Widget meaning that it receives keyboard input and normally if it is a text Widget gets to own the caret. This Aspect is closely related to the AspectFocus Aspect.


Member Function Documentation

bool getActive (  )  const

Retrieves the activated property of the Widget.

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

void setActive (  ) 

Activates the Widget.

Changes the activated property of the Widget.
Use this function to change the activated property of the Widget to true or with other words make this Widget the currently active Widget.

Back to SmartWin website
SourceForge.net Logo