FLTK logo

[fltk.general] Automatically resize buttons?

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 ]

Automatically resize buttons? supsm17 Jun 21, 2021  
 
I have several buttons in a scroll. I want the buttons to only be the size of the label, instead of a fixed size which could be too short or too long for the label. Currently, I set a large value as the width so the text doesn't get cut off. However, this makes the scroll bar inaccurate, and there is a lot of whitespace at the end. Is there any way to accomplish this?
temp.png

--
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/db73f4c9-b5a3-4ab3-870f-c59a90ccf2b6n%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'.