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...

This commit is contained in:
Pietro Gagliardi 2014-03-03 13:58:20 -05:00
parent 842815b2e0
commit 0333f799d9
1 changed files with 11 additions and 0 deletions

View File

@ -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 {