gui checkbox problem
Posted: Mon Dec 29, 2008 6:09 am
i want reset a form,
like web form's reset.
code:
How to reset a IGUICheckBox?
like web form's reset.
code:
Code: Select all
void UIControl::ResetLoginForm(PostData* postdb)
//Clear All EditBox & CheckBox values
{
IGUIElement* root = guienv->getRootGUIElement();
for (int i = 0; i < postdb->CS32Lenth; i++)
if (root->getElementFromId(postdb->CS32List[i],true)->getType() == EGUIET_EDIT_BOX)
{
root->getElementFromId(postdb->CS32List[i], true)->setText(L"");
}
else if (root->getElementFromId(postdb->CS32List[i],true)->getType() == EGUIET_CHECK_BOX)
{
// root->getElementFromId(postdb->CS32List[i], true)-> /*Here, how to reset a IGUICheckBox?*/
}
}