diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-16 17:37:21 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-16 17:37:21 -0400 |
| commit | d5f9c237b7e81e54e91241d49d2a8ad718bd397c (patch) | |
| tree | ee7d4c75c05b1b2144f83f7f07c1e20bcea6eab3 /redo/zz_test.go | |
| parent | 5d69bc2534cd3a90a2c93c564c2fcfc5accd5fad (diff) | |
Added image lists to Tables and added them to the Windows backend... mostly. There are a few kinks to work out...
Diffstat (limited to 'redo/zz_test.go')
| -rw-r--r-- | redo/zz_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/redo/zz_test.go b/redo/zz_test.go index 8a2d023..ef7da84 100644 --- a/redo/zz_test.go +++ b/redo/zz_test.go @@ -34,6 +34,7 @@ type testwin struct { w Window icons []icon il ImageList + icontbl Table group2 Group group Group grid Grid @@ -74,6 +75,13 @@ func (tw *testwin) make(done chan struct{}) { return true }) tw.icons, tw.il = readIcons() + tw.icontbl = NewTable(reflect.TypeOf(icon{})) + tw.icontbl.Lock() + idq := tw.icontbl.Data().(*[]icon) + *idq = tw.icons + tw.icontbl.Unlock() + tw.icontbl.LoadImageList(tw.il) + tw.t.Append("Image List Table", tw.icontbl) tw.group2 = NewGroup("Group", NewButton("Button in Group")) tw.t.Append("Filled Group", tw.group2) tw.group = NewGroup("Group", NewVerticalStack(NewCheckbox("Checkbox in Group"))) |
