(new in Rev4.00)
MQCheckBox class manages a check box. It inherits a MQWidgetBase class.
Please refer the inherited class about member functions declared in the inherited class.
Class | |
MQCheckBox | Constructor |
~MQCheckBox | Destructor |
Member functions | |
GetChecked | Get a checked status |
SetChecked | Set a checked status |
GetText | Get a displayed string |
SetText | Set a displayed string |
Events | |
AddChangedEvent | Add an event for changing a checked status |
MQCheckBox::MQCheckBox();
MQCheckBox::MQCheckBox(int id);
It is a constructor.
virtual MQCheckBox::~MQCheckBox();
This method is a destructor. It is defined as a virtual function.
bool MQCheckBox::GetChecked();
It returns whether a check is on or off.
void MQCheckBox::SetChecked(bool value);
It specifies whether a check is on or off.
std::wstring MQCheckBox::GetText();
It returns a string displayed beside a check box.
void MQCheckBox::SetText(const std::wstring& text);
It specifies a string displayed beside a check box.
template<typename T> void MQCheckBox::AddChangedEvent(T *p, BOOL (T::*f)(MQWidgetBase*, MQDocument), bool prior = false)
It adds events notified when a checked status has been changed by user's operation.