(value bool)
| 39 | } |
| 40 | |
| 41 | func (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 | |
| 51 | func (pb *PushButton) ensureProperDialogDefaultButton(hwndFocus win.HWND) { |
| 52 | widget := windowFromHandle(hwndFocus) |
no test coverage detected