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:
parent
842815b2e0
commit
0333f799d9
11
test/main.go
11
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 {
|
||||
|
|
Loading…
Reference in New Issue