3 Commits
Author SHA1 Message Date
cnmcdee fbfab38e41 Designer: poll shared XFrame selection, editable ComboBox/Listbox items, Scrollbar adjustment, Text text, Memo preview, border props
- Placement hole: the designer only set g_xframe_selected from its own
  combined palette, so a widget chosen in the separate XFrame palette
  never placed (on_canvas_press saw an empty selection). Poll the
  shared selection file (same path rule as xframe_selection_path) on
  the 200ms timer and at the start of on_canvas_press, so either
  palette works. Verified under openbox: separate-palette flow now
  places (GtkButton 0->1), combined-palette flow still places (1->2).
- ComboBox/Listbox: new editable items prop (pipe-separated, default
  Item 1|Item 2|Item 3); preview rebuilds from it, generator emits one
  append/insert per item. active / selection-mode unchanged.
- Scrollbar: editable lower/upper/step-increment/page-increment/
  page-size; preview reconfigures the adjustment, generator emits them.
  value/inverted unchanged; defaults preserve 0-100/1/10/10.
- Text: new text prop (same as Memo); preview and generator use it,
  falling back to the widget name when empty.
- Memo: preview now uses the text prop (was hardcoded to the name);
  added cursor-visible (same as Text).
- Border (GTK): border-width/border-color/border-radius in the common
  prop set; preview and generator emit border + border-radius CSS.
  Defaults (0/empty/0) preserve the current appearance.
- Tests: SELFTEST 35 items, widget_tests 58 passed, widget_tests.sh
  5 passed. Border CSS verified in generated code; XFrame border
  verified in the layout (1072 red pixels, state border=3 #ff0000 10).
2026-11-29 19:53:40 +00:00
cnmcdee 800883b024 Rename FDesigner/cfree to LightGUI (binary lightgui, all docs) 2026-11-29 03:35:48 +00:00
Muse 7828ced3d6 Add Lazarus-style custom widgets: Memo, GroupBox, Panel, Image, Shape, Notebook, ScrollBox, Splitter, StatusBar, ToolBar, MenuBar, SpinEdit, TrackBar, ProgressBar, DateTimePicker, ColorBox, ListView, TreeView, StringGrid, Plot
Twenty Lazarus-palette widgets, each placeable from the palette
(grouped sections), selectable/draggable/deletable, with a per-type
property table in props.h and a standalone generated class:
Memo (GtkTextView), GroupBox/Panel (GtkFrame), Image (GtkImage),
Shape (cairo drawing area), Notebook (GtkNotebook), ScrollBox
(GtkScrolledWindow), Splitter (GtkPaned), StatusBar (GtkStatusbar),
ToolBar (GtkToolbar), MenuBar (GtkMenuBar), SpinEdit (GtkSpinButton),
TrackBar (GtkScale), ProgressBar, DateTimePicker (GtkCalendar+entry),
ColorBox (GtkColorButton), ListView/TreeView (GtkTreeView),
StringGrid (GtkTreeView+ListStore), Plot (cairo sine wave).
Self-test Phase 7 + tests/widget_tests.sh cover place/edit/drag/
delete/generate/compile/run and .fdj round-trip per widget.
2026-11-25 03:49:56 -05:00