|
|
@OP: did any of this solve your question?
ggar...@gmail.com schrieb am Donnerstag, 11. April 2024 um 02:17:14 UTC+2:
On 4/10/2024 7:15 PM, supsm17 wrote:
> 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?
There are several ways, depending on what you prefer:
1) Create an Fl_Group and place two widgets Box for label, Input without
label. and position them using X and W coordinates. If you use fluid,
it can help.
2) Create a Fl_Pack, with similar widgets as Fl_Group. Fl_Pack will
pack the two widgets next to each other if you set the pack
horizontally. You just need to set the widget of the Fl_Group's widgets
and the Fl_Pack's height.
3) If you are using fltk1.4, use Fl_Flex. Similar to Fl_Pack (it is its
default behavior). But you can set the size of one widget (say the
label) and let the other resize as you will.
Gonzalo Garramuño
ggar...@gmail.com
--
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/b09da9ce-0094-4b67-b19a-8ba8c9f35993n%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |