summaryrefslogtreecommitdiff
path: root/zz_test.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-11-05 12:59:44 -0500
committerPietro Gagliardi <[email protected]>2014-11-05 12:59:44 -0500
commit5fc368fc23f0720fc193883d0709df8417268987 (patch)
treebd929349e56551dbca795300457232093d6047b3 /zz_test.go
parent0bd58006a6001f830413bb4dcbb7bcad6aea3cc9 (diff)
Started adding TextField.ReadOnly() and implemented it (mostly) on Windows.
Diffstat (limited to 'zz_test.go')
-rw-r--r--zz_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/zz_test.go b/zz_test.go
index bc2865f..478d3ea 100644
--- a/zz_test.go
+++ b/zz_test.go
@@ -54,6 +54,8 @@ var ddata = []dtype{
type testwin struct {
t Tab
w Window
+ roenter TextField
+ roro TextField
repainter *repainter
fe *ForeignEvent
festack Stack
@@ -176,6 +178,13 @@ func (tw *testwin) make(done chan struct{}) {
done <- struct{}{}
return true
})
+ tw.roenter = NewTextField()
+ tw.roro = NewTextField()
+ tw.roro.SetReadOnly(true)
+ tw.roenter.OnChanged(func() {
+ tw.roro.SetText(tw.roenter.Text())
+ })
+ tw.t.Append("Read-Only", newVerticalStack(tw.roenter, tw.roro))
tw.icons, tw.il = readIcons() // repainter uses these
tw.repainter = newRepainter(15)
tw.t.Append("Repaint", tw.repainter.grid)