About Store Forum Documentation Contact



Post Reply 
how to setup combobox from memb ?
Author Message
mih Offline
Member

Post: #1
how to setup combobox from memb ?
Hi smile 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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
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
Find all posts by this user Quote this message in a reply
mih Offline
Member

Post: #3
RE: how to setup combobox from memb ?
ok thanks
11-28-2009 05:42 PM
Find all posts by this user Quote this message in a reply
Post Reply