(new in Rev4.00)
MQRadioButton class manages a radio button. It inherits a MQWidgetBase class.
Please refer the inherited class about member functions declared in the inherited class.
| Class | |
| MQRadioButton | Constructor |
| ~MQRadioButton | Destructor |
| Member functions | |
| GetChecked | Get a checked status |
| SetChecked | Set a checked status |
| GetText | Get a displayed string |
| SetText | Set a displayed string |
| GetFontColor | Get a font color |
| SetFontColor | Set a font color |
| GetShadowText | Get a shadow display |
| SetShadowText | Set a shadow display |
| Events | |
| AddChangedEvent | Add an event for changing a checked status |
MQRadioButton::MQRadioButton();
MQRadioButton::MQRadioButton(int id);
It is a constructor.
virtual MQRadioButton::~MQRadioButton();
This method is a destructor. It is defined as a virtual function.
bool MQRadioButton::GetChecked();
It returns whether a check is on or off.
void MQRadioButton::SetChecked(bool value);
It specifies whether a check is on or off.
std::wstring MQRadioButton::GetText();
It returns a string displayed beside a check box.
void MQRadioButton::SetText(const std::wstring& text);
It specifies a string displayed beside a check box.
void MQRadioButton::GetFontColor(int& r, int& g, int& b, int& a);
(new in Rev4.69)
It returns a color of a displayed font. Each value is from 0 to 255.
When a is 0, a text is drawn with a default color.
void MQRadioButton::SetFontColor(int r, int g, int b, int a);
(new in Rev4.69)
It specifies a color of a displayed font. Each value is from 0 to 255.
bool MQRadioButton::GetShadowText();
(new in Rev4.69)
It returns whether a shadow is displayed or not behide a text.
void MQRadioButton::SetShadowText(bool value);
(new in Rev4.69)
It specifies whether a shadow is displayed or not behide a text.
template<typename T> void MQRadioButton::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.