FLTK logo

[fltk.general] Re: how to associate a &Label with a [Widget]

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: how to associate a &Label with a [Widget] "'Mark' via fltk.general" Dec 14, 2021  
  I solved this by making my labels Buttons with a NoBox frame type and setting their callbacks to widget.take_focus() for their associated widgets.

On Tuesday, December 14, 2021 at 10:16:39 AM UTC Mark wrote:
I have a label (a Frame with some text) and a widget beside it (a Spinner).
I'd like to have the label have an underlined letter (which in a button is achieved using &Click) but doesn't seem to work in a Frame's label. And when the user presses Alt+C (i.e., Alt+_underlined letter_) sends the keyboard focus to an associated widget.

How is this done in FLTK?

--
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/81f60b2b-7158-40c8-804a-6151ce5296f3n%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'.