MCPcopy
hub / github.com/lxn/walk / setText

Method setText

static.go:164–180  ·  view source on GitHub ↗
(text string)

Source from the content-addressed store, hash-verified

162}
163
164func (s *static) setText(text string) (changed bool, err error) {
165 if text == s.text() {
166 return false, nil
167 }
168
169 if err := s.WidgetBase.setText(text); err != nil {
170 return false, err
171 }
172
173 if err := setWindowText(s.hwndStatic, text); err != nil {
174 return false, err
175 }
176
177 s.RequestLayout()
178
179 return true, nil
180}
181
182func (s *static) TextColor() Color {
183 return s.textColor

Callers 11

updateTextMethod · 0.45
SetTextMethod · 0.45
SetTextMethod · 0.45
tableViewHdrWndProcFunction · 0.45
SetTextMethod · 0.45
SetTitleMethod · 0.45
SetTextMethod · 0.45
updateTextMethod · 0.45
SetTextMethod · 0.45
SetTextMethod · 0.45
SetTextMethod · 0.45

Calls 3

setWindowTextFunction · 0.85
RequestLayoutMethod · 0.65
textMethod · 0.45

Tested by

no test coverage detected