MQRadioButton class

(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
Events
AddChangedEvent Add an event for changing a checked status

MQRadioButton::MQRadioButton();

MQRadioButton::MQRadioButton(int id);

id
A widget ID created outside the plug-in

It is a constructor.


virtual MQRadioButton::~MQRadioButton();

This method is a destructor. It is defined as a virtual function.


bool MQRadioButton::GetChecked();

Return value
A checked status

It returns whether a check is on or off.


void MQRadioButton::SetChecked(bool value);

value
A checked status

It specifies whether a check is on or off.


std::wstring MQRadioButton::GetText();

Return value
A displayed string

It returns a string displayed beside a check box.


void MQRadioButton::SetText(const std::wstring& text);

text
A displayed string

It specifies a string displayed beside a check box.


template<typename T> void MQRadioButton::AddChangedEvent(T *p, BOOL (T::*f)(MQWidgetBase*, MQDocument), bool prior = false)

p
A widget to notify events
f
A member function to notify events
prior
An order to notify events
[true] Notify first
[false] Notify last

It adds events notified when a checked status has been changed by user's operation.