FLTK logo

[fltk.general] Re: Widget alignment based on external label

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: Widget alignment based on external label "'Matthias Melcher' via fltk.general" 16:46 Apr 10  
  I am not entirely sure I understand. Labels can be inside or outside the widget box (inside makes little sense on Fl_Input. They can be aligned around the box in 12 positions, top-left, top-cent, -top-right, right-top, right-center, etc. . They don't "see" what other widget are doing inside the same group. If you need more flexibility, it's probably best to have no label on your Fl_Input and instead position an Fl_Box with the label text next to the input. You can of course set the box's boxtype to FLAT_BOX to make it look like a regular label.

Lastly, you can use FLUID to do all this visually if you like. The FLUID alignment hints may be very helpful here.

sups...@gmail.com schrieb am Donnerstag, 11. April 2024 um 00:15:23 UTC+2:
Let's say I have a Fl_Input with an external label "Input". How can I align the widget such that the labels are aligned with other widgets, rather than just the box?

--
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/3459db45-0287-4707-9ef9-23e8611ae42fn%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'.