diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-20 14:17:00 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-20 14:17:00 -0400 |
| commit | ac6d0429f1befcceb94bca7ad57b19bd11afd1b6 (patch) | |
| tree | 1461f3d8ee9b388c5a3c86bb08181982feba1d74 /redo/textfield_windows.go | |
| parent | e06e32715552764769e85c72a43bf5ee78e5f555 (diff) | |
Implemented TextField.Invalid() on Windows.
Diffstat (limited to 'redo/textfield_windows.go')
| -rw-r--r-- | redo/textfield_windows.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/redo/textfield_windows.go b/redo/textfield_windows.go index 7345205..5f89691 100644 --- a/redo/textfield_windows.go +++ b/redo/textfield_windows.go @@ -51,7 +51,11 @@ func (t *textfield) OnChanged(f func()) { } func (t *textfield) Invalid(reason string) { - // TODO + if reason == "" { + C.textfieldHideInvalidBalloonTip(t._hwnd) + return + } + C.textfieldSetAndShowInvalidBalloonTip(t._hwnd, toUTF16(reason)) } //export textfieldChanged |
