diff options
| author | Pietro Gagliardi <[email protected]> | 2014-11-05 12:59:44 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-11-05 12:59:44 -0500 |
| commit | 5fc368fc23f0720fc193883d0709df8417268987 (patch) | |
| tree | bd929349e56551dbca795300457232093d6047b3 /zz_test.go | |
| parent | 0bd58006a6001f830413bb4dcbb7bcad6aea3cc9 (diff) | |
Started adding TextField.ReadOnly() and implemented it (mostly) on Windows.
Diffstat (limited to 'zz_test.go')
| -rw-r--r-- | zz_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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) |
