mih
Member
|
how to setup combobox from memb ?
Hi I'm trying to set combobox data form memb variable, here is the code :
Code:
void Load_dropped()
{
names.clear();
for(;CChar *name=DropName();)
{
Set(names.New(),name);
}
cmbx_car->setData(names);
cmbx_left_wheel->setData(names);
cmbx_right_wheel->setData(names);
cmbx_phys->setData(names);
wnd_init->show();
}
but when I star the application and click on combobox there is only thin rectangle showing off, what am I doing wrong ?
(cmbx_car etc are all combobox variables and names is memb from Drag&Drop tutorial : Memb<Char[MAX_PATH]> names " )
|
|
11-28-2009 04:40 PM |
|
Esenthel
Administrator
|
RE: how to setup combobox from memb ?
before setting setData, you must use setGroups to know how to interpret the data
|
|
11-28-2009 05:07 PM |
|
mih
Member
|
RE: how to setup combobox from memb ?
ok thanks
|
|
11-28-2009 05:42 PM |
|