![]() |
CMGDK r49-rc2
|
#include <ComboBox.H>
公有成员 | |
DefEvent (void, OnDraw,(GUIObject *)) | |
绘制事件 | |
DefEvent (void, OnChange,(GUIObject *)) | |
变动事件 | |
ComboBox () | |
ComboBox (float, float, float) | |
virtual | ~ComboBox () |
virtual void | Update () |
virtual void | Draw () |
对象绘制函数 | |
MenuItem * | Append (const WideString &name) |
增加一个数据项 | |
void | Clear () |
清除所有数据项 | |
公有属性 | |
ThemeColor | Color |
颜色 | |
MenuItem | Item |
数据项 | |
Property< int > | ItemIndex |
选中项索引虚拟变量 | |
Property< int > | Count |
数据项数量 | |
Property< MenuItem * > | Selected |
取得选中项 |
ComboBox是一种用于多选一的控件,在控件的位置上只显示当前选中的一项
hgl::gui::ComboBox::ComboBox | ( | ) |
hgl::gui::ComboBox::ComboBox | ( | float | l, |
float | t, | ||
float | w | ||
) |
hgl::gui::ComboBox::~ComboBox | ( | ) | [virtual] |
MenuItem* hgl::gui::ComboBox::Append | ( | const WideString & | name | ) | [inline] |
增加一个数据项
void hgl::gui::ComboBox::Clear | ( | ) | [inline] |
清除所有数据项
hgl::gui::ComboBox::DefEvent | ( | void | , |
OnChange | , | ||
(GUIObject *) | |||
) |
变动事件
hgl::gui::ComboBox::DefEvent | ( | void | , |
OnDraw | , | ||
(GUIObject *) | |||
) |
绘制事件
void hgl::gui::ComboBox::Draw | ( | ) | [virtual] |
void hgl::gui::ComboBox::Update | ( | ) | [virtual] |
对象刷新函数。如果对象没有重载这个函数,即被视为放弃刷新属性,将不会存在于对象控制器的刷新列表里
数据项数量
选中项索引虚拟变量
取得选中项