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? imm Jun 22, 2021  
 
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/CAGFM6dZbDW_3t1O7RBi8ni5UmkW8WkXtmiLqS3tMUA71AL5tBw%40mail.gmail.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'.