From 32256074b5404e2fe1a18dd67ca8ba93f20fd8b2 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 14 Feb 2014 17:31:21 -0500 Subject: [PATCH] More TODOs and example program tweaks. --- main.go | 4 +++- todo.md | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index f847a8b..1e571d6 100644 --- a/main.go +++ b/main.go @@ -16,7 +16,9 @@ func main() { l := NewLabel("This is a label") s0 := NewStack(Vertical, b, c, cb1, cb2, e, l) lb := NewListbox(true, "Select One", "Or More", "To Continue") - s := NewStack(Horizontal, lb, s0) + lb2 := NewListbox(false, "Select", "Only", "One", "Please") + s1 := NewStack(Vertical, lb2, lb) + s := NewStack(Horizontal, s1, s0) err := w.Open(s) if err != nil { panic(err) diff --git a/todo.md b/todo.md index ae09000..7f052c6 100644 --- a/todo.md +++ b/todo.md @@ -8,6 +8,10 @@ so I don't forget: - in fact, see if we really need to track errors on a lot of things... - password entry fields, character-limited entry fields, numeric entry fields, multiline entry fields - possible rename of LineEdit? +- more flexible size appropriation: allow a small button to be at the top of everything in the main() example here +- scrollbars on listboxes (shouldn't they be automatic? or is that just wine being dumb?) +- [Windows] should ListBox have a border style? +- padding and spacing in Stack; maybe a setting in Stack which keeps controls at their preferred size? super ultra important things: - the windows build appears to be unstable: @@ -17,6 +21,7 @@ super ultra important things: important things: - maybe make it so sysData doesn't need specialized info on every control type? - write an implementation documentation. +- Control.preferredSize() (definitely needed for Grid and Form) far off: - localization