From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Date: Mon, 17 Oct 2022 09:27:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: Gtk in ada using radiobuttons Content-Language: en-GB Newsgroups: comp.lang.ada References: <875yglqdtj.fsf@samuel> <87sfjnpgak.fsf@samuel> From: ldries46 In-Reply-To: <87sfjnpgak.fsf@samuel> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Organization: KPN B.V. Path: eternal-september.org!reader01.eternal-september.org!news.mixmin.net!npeer.as286.net!npeer-ng0.as286.net!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe005.abavia.com!abp002.abavia.com!news.kpn.nl!not-for-mail Injection-Date: Mon, 17 Oct 2022 09:27:12 +0200 Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com" X-Received-Bytes: 2256 Xref: reader01.eternal-september.org comp.lang.ada:64514 List-Id: Op 17-10-2022 om 0:14 schreef Ludovic Brenta: > "Jeffrey R.Carter" 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.