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

Method SetImageAboveText

pushbutton.go:41–49  ·  view source on GitHub ↗
(value bool)

Source from the content-addressed store, hash-verified

39}
40
41func (pb *PushButton) SetImageAboveText(value bool) error {
42 if err := pb.ensureStyleBits(win.BS_TOP, value); err != nil {
43 return err
44 }
45
46 // We need to set the image again, or Windows will fail to calculate the
47 // button control size correctly.
48 return pb.SetImage(pb.image)
49}
50
51func (pb *PushButton) ensureProperDialogDefaultButton(hwndFocus win.HWND) {
52 widget := windowFromHandle(hwndFocus)

Callers 1

CreateMethod · 0.95

Calls 2

ensureStyleBitsMethod · 0.80
SetImageMethod · 0.45

Tested by

no test coverage detected