| 13 | |
| 14 | |
| 15 | BOOL ExpLua_Ctrls(lua_State *L) |
| 16 | { |
| 17 | try{ |
| 18 | lua_tinker::class_add<SComboBase>(L,"SComboBoxBase"); |
| 19 | lua_tinker::class_inh<SComboBase,SWindow>(L); |
| 20 | // lua_tinker::class_def<SComboBoxBase>(L,"toSWindow",&SComboBoxBase::toSWindow); |
| 21 | lua_tinker::class_def<SComboBase>(L,"GetCurSel",&SComboBase::GetCurSel); |
| 22 | lua_tinker::class_def<SComboBase>(L,"GetCount",&SComboBase::GetCount); |
| 23 | lua_tinker::class_def<SComboBase>(L,"SetCurSel",&SComboBase::SetCurSel); |
| 24 | lua_tinker::class_def<SComboBase>(L,"GetLBText",&SComboBase::GetLBText); |
| 25 | lua_tinker::class_def<SComboBase>(L,"FindString",&SComboBase::FindString); |
| 26 | lua_tinker::class_def<SComboBase>(L,"DropDown",&SComboBase::DropDown); |
| 27 | lua_tinker::class_def<SComboBase>(L,"CloseUp",&SComboBase::CloseUp); |
| 28 | lua_tinker::def(L,"toComboboxBase",toSComboboxBase); |
| 29 | |
| 30 | lua_tinker::class_add<SComboBox>(L,"SComboBox"); |
| 31 | lua_tinker::class_inh<SComboBox,SComboBase>(L); |
| 32 | lua_tinker::class_def<SComboBox>(L,"InsertItem",&SComboBox::InsertItem); |
| 33 | lua_tinker::class_def<SComboBox>(L,"DeleteString",&SComboBox::DeleteString); |
| 34 | lua_tinker::class_def<SComboBox>(L,"ResetContent",&SComboBox::ResetContent); |
| 35 | lua_tinker::class_def<SComboBox>(L,"GetLBText",&SComboBox::GetLBText); |
| 36 | lua_tinker::class_def<SComboBox>(L,"GetListBox",&SComboBox::GetListBox); |
| 37 | lua_tinker::class_def<SComboBox>(L,"GetItemData",&SComboBox::GetItemData); |
| 38 | lua_tinker::class_def<SComboBox>(L,"SetItemData",&SComboBox::SetItemData); |
| 39 | lua_tinker::def(L,"toCombobox",toSCombobox); |
| 40 | |
| 41 | |
| 42 | return TRUE; |
| 43 | }catch(...) |
| 44 | { |
| 45 | return FALSE; |
| 46 | } |
| 47 | } |
no test coverage detected