FLTK logo

Re: [fltk.general] Select only one button?

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Select only one button? supsm17 Jun 22, 2021  
  Thanks

On Tuesday, June 22, 2021 at 10:15:29 AM UTC-7 Ian MacArthur wrote:
On Tue, 22 Jun 2021, 18:10 supsm17 wrote:
Is it possible to select only 1 button in a scroll? (i.e. when one button gets selected, the previous one gets deselected). I thought of clearing the scroll entirely and re-adding each of the widgets, but is there a better way?


Check the docs for setting the button type to a "radio button" - that's the button mode that acts as you described.

--
Ian
From my Fairphone FP3
  

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/2755b639-ea82-495e-b05b-c7f8b7e692efn%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.