Page 1 of 1

gtkmm: radio button group status is not a property?

Posted: 2024-05-09 10:02
by Onsemeliot
I am trying to learn creating C++ applications using gtk. Therefore, I started following the official introduction guide to gtkmm.

In chapter 6 radio buttons are introduced. But the guide fails to mention how it should be possible to access the present value of the group as a whole. And even after hours of searching the documentation and in general on the internet I can't find such a property. Of course it is possible to check every buttons state separately and then do what ever I want to do from there but I can't comprehend why a radio button group option even exists when it doesn't offer the one feature for having one (binding different options into a single construct that – as a whole – can have different values).

Is there really no compound value attribute of a radio group in gtkmm? What is the point of using it then? What am I missing?

Re: gtkmm: radio button group status is not a property?

Posted: 2024-05-10 20:38
by ruwolf
I do not know.
Maybe original can hint? GTK4: class.CheckButton#grouping

Re: gtkmm: radio button group status is not a property?

Posted: 2024-06-02 06:22
by Aki
Hello,

Did you sorted it out ?

note: moved to "Programming" sub-forum.

Re: gtkmm: radio button group status is not a property?

Posted: 2024-06-03 07:33
by Onsemeliot
Well, as I understand it, there is really no way to compound the values of the single buttons in a radio button group to one shared state. Maybe I am wrong, but it seems since just one button can be toggled on in a group, to check which button is toggled on is the recommended way to find out the common state.