Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Kratos

#1
Okay. I tried it like that and it works like a charm!

This is great! Thanks.
#2
Help requests / Cast Widget to Radiobutton?
17 May 2019, 13:57:34
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.