ClickableStaticText Class Reference

#include <ClickableStaticText.h>

Inheritance diagram for ClickableStaticText:

Inheritance graph
[legend]
Collaboration diagram for ClickableStaticText:

Collaboration graph
[legend]

List of all members.


Detailed Description

ClickableStaticText is a class derived from wxStaticText that associates a static text control with a wxCheckBox and implements the EVT_LEFT_DOWN button. When the EVT_LEFT_DOWN event is received the state of the check box is flipped, i.e., changed from checked to not checked or vice versa. This enables multi-line blocks of static text to serve as a label for a check box.

TSP-enforcing: No

Definition at line 29 of file ClickableStaticText.h.


Public Member Functions

 ClickableStaticText (wxWindow *parent, wxWindowID id, const wxString &label, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxStaticTextNameStr)
void ClickThis (wxMouseEvent &event)
void SetCheckBox (wxCheckBox *cb)

Constructor & Destructor Documentation

ClickableStaticText::ClickableStaticText ( wxWindow *  parent,
wxWindowID  id,
const wxString &  label,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = 0,
const wxString &  name = wxStaticTextNameStr 
)

Interface: External

This constructor initializes an instance of ClickableStaticText in a particular context. See the wxWidgets documentation for additional details for each parameter.

Returns:
None
Parameters:
parent  Parent window. Should not be NULL.
id  Control identifier. A value of -1 denotes a default value.
label  Text label.
pos  Window position.
size  Window size.
style  Window style.
name  Window name.

Definition at line 25 of file ClickableStaticText.cpp.


Member Function Documentation

void ClickableStaticText::ClickThis ( wxMouseEvent &  event  ) 

Interface: External

This method is fired when the EVT_LEFT_DOWN is received. If a check box has been specified via a call to SetCheckBox, the state of the check box is flipped, i.e., checked is changed to unchecked and vice versa. If no check box has been specified, this method does nothing.

Returns:
None

Definition at line 69 of file ClickableStaticText.cpp.

void ClickableStaticText::SetCheckBox ( wxCheckBox *  cb  ) 

Interface: External

This method is used to specify the check box whose state is changed when the EVT_LEFT_DOWN is received.

Returns:
None

Definition at line 53 of file ClickableStaticText.cpp.


The documentation for this class was generated from the following files:

Generated on Mon Nov 15 11:19:49 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6