(title string, icon uintptr)
| 90 | } |
| 91 | |
| 92 | func (tt *ToolTip) setTitle(title string, icon uintptr) error { |
| 93 | if len(title) > 99 { |
| 94 | title = title[:99] |
| 95 | } |
| 96 | |
| 97 | if win.FALSE == tt.SendMessage(win.TTM_SETTITLE, icon, uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(title)))) { |
| 98 | return newError("TTM_SETTITLE failed") |
| 99 | } |
| 100 | |
| 101 | return nil |
| 102 | } |
| 103 | |
| 104 | func (tt *ToolTip) track(tool Widget) error { |
| 105 | form := tool.Form() |
no test coverage detected