When I try and use get_text(), it works the first time, but the second time it uses the original value. How can I get it to give me the new value?
GLUI_EditText fileText; fileText = gluiOpen->add_edittext_to_panel( file_selection, "Filename", GLUI_EDITTEXT_TEXT ); const char fileName = fileText->get_text();
I think it might be because its a const, but get_text insists on using a const. Any thoughts???
nevermind, stupid mistake :)
Log in to post a comment.
When I try and use get_text(), it works the first time, but the second time it uses the original value. How can I get it to give me the new value?
GLUI_EditText fileText;
fileText = gluiOpen->add_edittext_to_panel( file_selection, "Filename", GLUI_EDITTEXT_TEXT );
const char fileName = fileText->get_text();
I think it might be because its a const, but get_text insists on using a const. Any thoughts???
nevermind, stupid mistake :)