(new in Rev4.00)
MQRadioButton クラスはラジオボタンを表示するウィジェットを管理します。MQWidgetBaseクラスを継承しています。
継承元クラスで定義されるメンバ関数はそのクラスの記述を参照してください。
| クラス | |
| MQRadioButton | コンストラクタ |
| ~MQRadioButton | デストラクタ |
| メンバ関数 | |
| GetChecked | チェック状態の取得 |
| SetChecked | チェック状態の設定 |
| GetText | 表示文字列の取得 |
| SetText | 表示文字列の設定 |
| GetFontColor | 文字の表示色の取得 |
| SetFontColor | 文字の表示色の設定 |
| GetShadowText | 影表示の取得 |
| SetShadowText | 影表示の設定 |
| イベント | |
| AddChangedEvent | チェック状態が変更された時のイベントを追加 |
MQRadioButton::MQRadioButton();
MQRadioButton::MQRadioButton(int id);
コンストラクタです。
virtual MQRadioButton::~MQRadioButton();
デストラクタです。仮想関数として定義されます。
bool MQRadioButton::GetChecked();
チェックされているかどうかを取得します。
void MQRadioButton::SetChecked(bool value);
チェックされているかどうかを設定します。
std::wstring MQRadioButton::GetText();
チェックボックス横に表示される文字列を取得します。
void MQRadioButton::SetText(const std::wstring& text);
チェックボックス横に表示される文字列を設定します。
void MQRadioButton::GetFontColor(int& r, int& g, int& b, int& a);
(new in Rev4.69)
文字の表示色を取得します。各成分は0~255となります。
aが0の場合、システムで定義された標準色で描画されます。
void MQRadioButton::SetFontColor(int r, int g, int b, int a);
(new in Rev4.69)
文字の表示色を設定します。各成分は0~255となります。
bool MQRadioButton::GetShadowText();
(new in Rev4.69)
文字に影を表示するかを取得します。
void MQRadioButton::SetShadowText(bool value);
(new in Rev4.69)
文字に影を表示するかを設定します。
template<typename T> void MQRadioButton::AddChangedEvent(T *p, BOOL (T::*f)(MQWidgetBase*, MQDocument), bool prior = false)
ユーザーの操作によりチェック状態が変更されたときに発生されるイベントを追加します。