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

Method SetCheckState

checkbox.go:96–105  ·  view source on GitHub ↗
(state CheckState)

Source from the content-addressed store, hash-verified

94}
95
96func (cb *CheckBox) SetCheckState(state CheckState) {
97 if state == cb.CheckState() {
98 return
99 }
100
101 cb.SendMessage(win.BM_SETCHECK, uintptr(state), 0)
102
103 cb.checkedChangedPublisher.Publish()
104 cb.checkStateChangedPublisher.Publish()
105}
106
107func (cb *CheckBox) CheckStateChanged() *Event {
108 return cb.checkStateChangedPublisher.Event()

Callers 3

RestoreStateMethod · 0.95
CreateMethod · 0.95
NewCheckBoxFunction · 0.80

Calls 3

CheckStateMethod · 0.95
SendMessageMethod · 0.65
PublishMethod · 0.45

Tested by

no test coverage detected