MCPcopy Index your code
hub / github.com/lxn/walk / setTitle

Method setTitle

tooltip.go:92–102  ·  view source on GitHub ↗
(title string, icon uintptr)

Source from the content-addressed store, hash-verified

90}
91
92func (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
104func (tt *ToolTip) track(tool Widget) error {
105 form := tool.Form()

Callers 4

SetTitleMethod · 0.95
SetInfoTitleMethod · 0.95
SetWarningTitleMethod · 0.95
SetErrorTitleMethod · 0.95

Calls 2

newErrorFunction · 0.85
SendMessageMethod · 0.65

Tested by

no test coverage detected