I have a class that contains all widgets i need in a window, saved in a gui pointer.
Gui pointer is gonna be drawn in a window later.
This is the method which uploads my widgets from file :
This is the complete code that takes text from editboxes:
I verified entire code and it seems to be fine, but when i enter a text in any editbox from my window, i get only the text i set with
Gui pointer is gonna be drawn in a window later.
This is the method which uploads my widgets from file :
Code Select
void upload_window()
{
gui->setGlobalFont("DejaVuSans.ttf");
gui->loadWidgetsFromFile("anulareRezervareForm/anulareRezervare.txt");
}
This is the complete code that takes text from editboxes:
Code Select
int colect_data()
{
if (data)
delete data;
data=new AnulareRezervare;
tgui::EditBox::Ptr nume= gui->get("numeDeAnulat"),
prenume= gui->get("prenumeDeAnulat"),
cnp= gui->get("cnpDeAnulat");
std::string xnume= nume->getText(),
xprenume= prenume->getText(),
xcnp= cnp->getText();
data->nume= strdup(xnume.c_str());
data->prenume= strdup(xprenume.c_str());
data->cnp= strdup(xcnp.c_str());
return success;
}
I verified entire code and it seems to be fine, but when i enter a text in any editbox from my window, i get only the text i set with
Code Select
setText()
or in the form config. I tried with a textbox, but the same thing i get, in this window, all of my widgets are not working correctly.