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=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Gtk in ada using radiobuttons Date: Mon, 17 Oct 2022 00:14:27 +0200 Organization: A noiseless patient Spider Message-ID: <87sfjnpgak.fsf@samuel> References: <875yglqdtj.fsf@samuel> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="ee0e2c84afcad055c5f67be1d556b344"; logging-data="3413743"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kG1xx9RIhXtgLB6UXeCBt" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:huu1r70z52z6JMBxdWutKVhBV94= sha1:s1gHJenIBwr7zVFORvp5Uq12V1k= Xref: reader01.eternal-september.org comp.lang.ada:64512 List-Id: "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. -- Ludovic Brenta.