![]() |
CMGDK r49-rc2
|
收音机对像 更多...
#include <RadioObject.H>
公有成员 | |
DefEvent (void, OnChange,(Object *, bool)) | |
状态改变事件 | |
RadioObject (int=0) | |
公有属性 | |
Property< int > | RadioTeam |
收音机按钮组编号 | |
Property< bool > | Checked |
选择状态 | |
保护成员 | |
int | GetTeam () |
bool | GetCheck () |
virtual void | SetCheck (bool) |
保护属性 | |
int | team |
bool | check |
友元 | |
class | ObjectControl |
收音机对像
收音机对象用于多选一的情况,比如一组按钮,或一组菜单
收音机对象有一个组编号,每一组的互相排斥,只能有一个处于Checked=true状态。
但如果这个组编号为-1则没有不产生排斥
hgl::gui::RadioObject::RadioObject | ( | int | t = 0 | ) |
收音机对像构造函数
t | 当前对象所在组,-1表示不按分组处理 |
hgl::gui::RadioObject::DefEvent | ( | void | , |
OnChange | , | ||
(Object *, bool) | |||
) |
状态改变事件
bool hgl::gui::RadioObject::GetCheck | ( | ) | [inline, protected] |
int hgl::gui::RadioObject::GetTeam | ( | ) | [inline, protected] |
void hgl::gui::RadioObject::SetCheck | ( | bool | _check | ) | [protected, virtual] |
friend class ObjectControl [friend] |
bool hgl::gui::RadioObject::check [protected] |
选择状态
收音机按钮组编号
int hgl::gui::RadioObject::team [protected] |