From: ldries46 <bertus.dries@planet.nl>
Subject: Re: Gtk in ada using radiobuttons
Date: Sun, 16 Oct 2022 18:43:17 +0200 [thread overview]
Message-ID: <nnd$5fe828a6$33713fd0@615a1ebc43f00050> (raw)
In-Reply-To: <nnd$0c6be124$11646b54@413dc7685a372cde>
Op 15-10-2022 om 16:28 schreef ldries46:
> 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.
>
>
As far as I can read in gtk-radio_button.ads the followinf dtatements
should do the trick:
TypeDialog.Radio_Frame := Widget_SList.Null_List;
TypeDialog.Radio_Header :=
Gtk_Radio_Button_New_With_Label(TypeDialog.Radio_Frame,To_String(Ext_C_Header(lan)));
TypeDialog.Radio_CPP :=
Gtk_Radio_Button_New_With_Label(TypeDialog.Radio_Frame,
To_String(Ext_CPP_Header(lan)));
Pack_Start
(TypeDialog.Radio_Button_Box,
TypeDialog.Radio_Header,
Expand => True,
Fill => True,
Padding => 0);
Pack_Start
(TypeDialog.Radio_Button_Box,
TypeDialog.Radio_CPP,
Expand => True,
Fill => True,
Padding => 1);
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
next prev parent reply other threads:[~2022-10-16 16:43 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
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 [this message]
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