summaryrefslogtreecommitdiff
path: root/zz_test.go
diff options
context:
space:
mode:
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)