comp.lang.ada
 help / color / mirror / Atom feed
From: ldries46 <bertus.dries@planet.nl>
Subject: Re: Gtk in ada using radiobuttons
Date: Mon, 17 Oct 2022 09:27:11 +0200	[thread overview]
Message-ID: <nnd$7c46d8db$3ad874e6@2bc15c91e8fd3fa8> (raw)
In-Reply-To: <87sfjnpgak.fsf@samuel>

Op 17-10-2022 om 0:14 schreef Ludovic Brenta:
> "Jeffrey R.Carter" <spam.jrcarter.not@spam.acm.org.not> writes:
>> 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.
> Yes but you create the radio buttons one at a time, so one of the
> buttons must be the first you create.
>
>> A GUI library that makes the client do extra work to achieve this is
>> poorly designed.
> Agreed but since you've read the documentation by now, you know about
> Gtk_Radio_Button_New_With_Label_From_Widget.
>
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.
Examples are almost always a better way to learn something while the 
description in the ads files are always technically correct descriptions 
of the function and not how the function interacts with all other functions.

  reply	other threads:[~2022-10-17  7:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-15 14:28 Gtk in ada using radiobuttons ldries46
2022-10-15 15:58 ` Ludovic Brenta
2022-10-16 20:09   ` Jeffrey R.Carter
2022-10-16 22:14     ` Ludovic Brenta
2022-10-17  7:27       ` ldries46 [this message]
2022-10-17 11:18         ` Ludovic Brenta
2022-10-17 11:22         ` Ludovic Brenta
2022-10-17  8:18       ` Jeffrey R.Carter
2022-10-16 16:43 ` ldries46
2022-10-16 20:12   ` Jeffrey R.Carter
2022-10-17  6:56     ` ldries46
2022-10-17 11:17       ` Ludovic Brenta
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox