(parent Container)
| 15 | } |
| 16 | |
| 17 | func NewToolButton(parent Container) (*ToolButton, error) { |
| 18 | tb := new(ToolButton) |
| 19 | |
| 20 | if err := InitWidget( |
| 21 | tb, |
| 22 | parent, |
| 23 | "BUTTON", |
| 24 | win.WS_TABSTOP|win.WS_VISIBLE|win.BS_BITMAP|win.BS_PUSHBUTTON, |
| 25 | 0); err != nil { |
| 26 | return nil, err |
| 27 | } |
| 28 | |
| 29 | tb.Button.init() |
| 30 | |
| 31 | tb.GraphicsEffects().Add(InteractionEffect) |
| 32 | tb.GraphicsEffects().Add(FocusEffect) |
| 33 | |
| 34 | return tb, nil |
| 35 | } |
| 36 | |
| 37 | func (tb *ToolButton) WndProc(hwnd win.HWND, msg uint32, wParam, lParam uintptr) uintptr { |
| 38 | switch msg { |
nothing calls this directly
no test coverage detected
searching dependent graphs…