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

Method SetText

button.go:123–135  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

121}
122
123func (b *Button) SetText(value string) error {
124 if value == b.Text() {
125 return nil
126 }
127
128 if err := b.setText(value); err != nil {
129 return err
130 }
131
132 b.RequestLayout()
133
134 return nil
135}
136
137func (b *Button) Checked() bool {
138 return b.SendMessage(win.BM_GETCHECK, 0, 0) == win.BST_CHECKED

Callers 1

initMethod · 0.95

Calls 3

TextMethod · 0.95
RequestLayoutMethod · 0.65
setTextMethod · 0.45

Tested by

no test coverage detected