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

Method SetImageAboveText

splitbutton.go:66–74  ·  view source on GitHub ↗
(value bool)

Source from the content-addressed store, hash-verified

64}
65
66func (sb *SplitButton) SetImageAboveText(value bool) error {
67 if err := sb.ensureStyleBits(win.BS_TOP, value); err != nil {
68 return err
69 }
70
71 // We need to set the image again, or Windows will fail to calculate the
72 // button control size correctly.
73 return sb.SetImage(sb.image)
74}
75
76func (sb *SplitButton) Menu() *Menu {
77 return sb.menu

Callers 1

CreateMethod · 0.95

Calls 2

ensureStyleBitsMethod · 0.80
SetImageMethod · 0.45

Tested by

no test coverage detected