Hi Texus!
First, thank you for your amazing Library, I'm using version 0.8.5 now.
I used the gui builder to create a form, and in my code I'ld like to see if a checkbox (or radiobutton) is checked or not. I tried the following:
if (((tgui::RadioButton*)((tgui::ClickableWidget*)NewGameMenu->get("radTom"))->isChecked()) but unfortunately without success.
Is there something special I have to do to cast from a pointer to a widget to a Radiobutton? Because it doesn't inherit directly from Widget.
Thank you,
Tom.
First, thank you for your amazing Library, I'm using version 0.8.5 now.
I used the gui builder to create a form, and in my code I'ld like to see if a checkbox (or radiobutton) is checked or not. I tried the following:
if (((tgui::RadioButton*)((tgui::ClickableWidget*)NewGameMenu->get("radTom"))->isChecked()) but unfortunately without success.
Is there something special I have to do to cast from a pointer to a widget to a Radiobutton? Because it doesn't inherit directly from Widget.
Thank you,
Tom.