summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-03 13:58:20 -0500
committerPietro Gagliardi <[email protected]>2014-03-03 13:58:20 -0500
commit0333f799d96fa53d8320e714a1449baf66fa31c7 (patch)
tree141a861c3d9ccb41b6dac2f6c23add59287ad2e5
parent842815b2e0b2288500529e599d63eb8696726143 (diff)
Added a Listbox preferredSize test window to the main test program, as it appears I'm going to have to change how sysData.preferredSize() works on Mac OS X to acommodate NSTableView, NSScrollView, and NSProgressIndicator...
-rw-r--r--test/main.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/main.go b/test/main.go
index 1984e58..1aa4ac2 100644
--- a/test/main.go
+++ b/test/main.go
@@ -6,6 +6,13 @@ import (
. ".."
)
+func listboxPreferredSizeTest() (*Window, error) {
+ lb := NewListbox(false, "xxxxx", "y", "zzz")
+ g := NewGrid(1, lb)
+ w := NewWindow("Listbox Preferred Size Test", 300, 300)
+ return w, w.Open(g)
+}
+
func gridWindow() (*Window, error) {
w := NewWindow("Grid Test", 400, 400)
b00 := NewButton("0,0")
@@ -73,6 +80,10 @@ func myMain() {
if err != nil {
panic(err)
}
+ _, err = listboxPreferredSizeTest()
+ if err != nil {
+ panic(err)
+ }
mainloop:
for {