summaryrefslogtreecommitdiff
path: root/fluid/widget_panel.fl
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2022-11-06 14:40:18 +0100
committerMatthias Melcher <github@matthiasm.com>2022-11-08 19:09:17 +0100
commitb76152cf6c0346a34a1f866ad1809ad0c6f2e6ea (patch)
tree8cd13cb8e5507c8f110f527e1d4eb8f3a7860f10 /fluid/widget_panel.fl
parentec47afb7eb5864e915ea89530ffb8b6a81bf230d (diff)
Fluid: widget classes can resize children on instantiation
Diffstat (limited to 'fluid/widget_panel.fl')
-rw-r--r--fluid/widget_panel.fl23
1 files changed, 18 insertions, 5 deletions
diff --git a/fluid/widget_panel.fl b/fluid/widget_panel.fl
index d853efc88..149902ccb 100644
--- a/fluid/widget_panel.fl
+++ b/fluid/widget_panel.fl
@@ -258,7 +258,7 @@ Use Ctrl-J for newlines.} xywh {95 40 190 20} labelfont 1 labelsize 11 when 1 te
}
Fl_Group {} {
label {Position:}
- callback position_group_cb open selected
+ callback position_group_cb open
xywh {95 150 314 20} labelfont 1 labelsize 11 align 4
} {
Fl_Input widget_x_input {
@@ -285,10 +285,23 @@ Use Ctrl-J for newlines.} xywh {95 40 190 20} labelfont 1 labelsize 11 when 1 te
tooltip {The height of the widget.} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
class Fluid_Coord_Input
}
- Fl_Light_Button {} {
- label Relative
- callback wc_relative_cb
- tooltip {If set, widgets inside a widget class of type Fl_Group are repositioned relative to the origin at construction time} xywh {335 150 65 20} labelsize 11
+ Fl_Choice {} {
+ label {Children:}
+ callback wc_relative_cb open selected
+ tooltip {When instantiating a widget class, the children can either be fixed in their original position, automatically be repositioned, or both repsositioned and resized to fit the container.} xywh {335 150 65 20} down_box BORDER_BOX labelsize 11 align 5 textsize 11
+ } {
+ MenuItem {} {
+ label Fixed
+ xywh {0 0 31 20} labelsize 11
+ }
+ MenuItem {} {
+ label Reposition
+ xywh {0 0 31 20} labelsize 11
+ }
+ MenuItem {} {
+ label Resize
+ xywh {0 0 31 20} labelsize 11
+ }
}
Fl_Box {} {
xywh {398 150 1 20} resizable