()
| 55 | } |
| 56 | |
| 57 | func (se *SyntaxEdit) Text() string { |
| 58 | textLength := se.SendMessage(win.WM_GETTEXTLENGTH, 0, 0) |
| 59 | buf := make([]uint16, textLength+1) |
| 60 | se.SendMessage(win.WM_GETTEXT, uintptr(textLength+1), uintptr(unsafe.Pointer(&buf[0]))) |
| 61 | return strings.Replace(syscall.UTF16ToString(buf), "\r\n", "\n", -1) |
| 62 | } |
| 63 | |
| 64 | func (se *SyntaxEdit) SetText(text string) (err error) { |
| 65 | if text == se.Text() { |
no outgoing calls
no test coverage detected