I've pushed and example of using Radio Buttons into test/align.adb and I've
added a comment on its use their spec.

Here are the relevant lines of code that will probably demystify their use:

   --  These radio buttons will operate individually since Radios function
   --  as groups based on the Name attribute

   for i in Radios'Range loop
      Radios (i).Create (F);
      F.Put ("Radio #" & i'Img);
      F.New_Line;
   end loop;

   F.Horizontal_Rule;

   --  These radio buttons will operate together since Radios function
   --  as groups based on the Name attribute, in this case "Group1"

   for i in Radio_Group'Range loop
      Radio_Group (i).Create (F, Name => "Group1");
      F.Put ("Radio Group #" & i'Img);
      F.New_Line;
   end loop;


On Thu, Jan 7, 2016 at 2:19 PM Jeffrey R. Carter <jrcar...@acm.org> wrote:

> There doesn't seem to be any tutorial or demo that uses radio buttons, and
> my
> experiments with them have been unsuccessful. It would be nice to see an
> example
> of how to use them.
>
> --
> Jeff Carter
> "My brain hurts!"
> Monty Python's Flying Circus
> 21
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gnoga-list mailing list
> Gnoga-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gnoga-list
>
------------------------------------------------------------------------------
_______________________________________________
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list

Reply via email to