I realized a set of two radiobuttons that should operate in a group,
either one or the other but I cannot find the correct way to combine
these two radio buttons although I can see the dialog in which they
are used. only both buttons are on and clicking on them cannot set
either of the off. I tried to find an example how to do this on
internet. I just send the used files along. Can anybody help me.
But the dialog looks good with the exception that both buttons are activated and
cannot be deactivated. I still do want the choice between the two I cannot find
that in the When running in debugging mode I can see that the group still is null
Read the comments at the top of gtk-radio_button.ads; it explains how to retrieve the group from the first radio button and then assign all other buttons to that group. See Get_Group, Set_Group.
On 2022-10-15 17:58, Ludovic Brenta wrote:
Read the comments at the top of gtk-radio_button.ads; it explains how to
retrieve the group from the first radio button and then assign all other
buttons to that group. See Get_Group, Set_Group.
I know of no reason why the client of a GUI library would ever create
a single, independent radio button. A single radio button is useless.
One always wants to create a set of linked buttuns.
A GUI library that makes the client do extra work to achieve this is
poorly designed.
On 2022-10-16 18:43, ldries46 wrote:
But the dialog looks good with the exception that both buttons are
activated and cannot be deactivated. I still do want the choice
between the two I cannot find that in the When running in debugging
mode I can see that the group still is null
A set of 2 radio buttons is usually equivalent to a check box, which
is visually simpler as well.
"Jeffrey R.Carter" <spam.jrcarter.not@spam.acm.org.not> writes:
On 2022-10-15 17:58, Ludovic Brenta wrote:Yes but you create the radio buttons one at a time, so one of the
Read the comments at the top of gtk-radio_button.ads; it explains how to >>> retrieve the group from the first radio button and then assign all other >>> buttons to that group. See Get_Group, Set_Group.I know of no reason why the client of a GUI library would ever create
a single, independent radio button. A single radio button is useless.
One always wants to create a set of linked buttuns.
buttons must be the first you create.
A GUI library that makes the client do extra work to achieve this isAgreed but since you've read the documentation by now, you know about Gtk_Radio_Button_New_With_Label_From_Widget.
poorly designed.
"Jeffrey R.Carter" <spam.jrcarter.not@spam.acm.org.not> writes:
I know of no reason why the client of a GUI library would ever create
a single, independent radio button. A single radio button is useless.
One always wants to create a set of linked buttons.
Yes but you create the radio buttons one at a time, so one of the
buttons must be the first you create.
Finally I had the correct view and working of my dialogue.
But the very first remark I made stays true for someone trying to use
Gtk is stays a problem without good example code.
Op 16-10-2022 om 22:12 schreef Jeffrey R.Carter:
On 2022-10-16 18:43, ldries46 wrote:Building a program is sometimes a step by step process. It may be
But the dialog looks good with the exception that both buttons are
activated and cannot be deactivated. I still do want the choice
between the two I cannot find that in the When running in debugging
mode I can see that the group still is null
A set of 2 radio buttons is usually equivalent to a check box, which
is visually simpler as well.
possible that I need a third or even a fourth possibility in the
choice, so in my opinion it is good to anticipate
Finally I had the correct view and working of my dialogue.
But the very first remark I made stays true for someone trying to use
Gtk is stays a problem without good example code.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 399 |
Nodes: | 16 (2 / 14) |
Uptime: | 65:05:10 |
Calls: | 8,355 |
Calls today: | 15 |
Files: | 13,159 |
Messages: | 5,893,953 |
Posted today: | 1 |