#include <ClickableStaticText.h>
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) |
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.
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.
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.
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.
Definition at line 53 of file ClickableStaticText.cpp.