gtkmm: radio button group status is not a property?

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
User avatar
Onsemeliot
Posts: 406
Joined: 2010-12-15 14:43
Has thanked: 39 times
Been thanked: 11 times

gtkmm: radio button group status is not a property?

#1 Post 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?

User avatar
ruwolf
Posts: 909
Joined: 2008-02-18 05:04
Location: Banovce nad Bebravou
Has thanked: 89 times
Been thanked: 68 times

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

#2 Post by ruwolf »

I do not know.
Maybe original can hint? GTK4: class.CheckButton#grouping

Aki
Global Moderator
Global Moderator
Posts: 4079
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 115 times
Been thanked: 540 times

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

#3 Post by Aki »

Hello,

Did you sorted it out ?

note: moved to "Programming" sub-forum.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

User avatar
Onsemeliot
Posts: 406
Joined: 2010-12-15 14:43
Has thanked: 39 times
Been thanked: 11 times

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

#4 Post 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.

Post Reply