(value string)
| 121 | } |
| 122 | |
| 123 | func (b *Button) SetText(value string) error { |
| 124 | if value == b.Text() { |
| 125 | return nil |
| 126 | } |
| 127 | |
| 128 | if err := b.setText(value); err != nil { |
| 129 | return err |
| 130 | } |
| 131 | |
| 132 | b.RequestLayout() |
| 133 | |
| 134 | return nil |
| 135 | } |
| 136 | |
| 137 | func (b *Button) Checked() bool { |
| 138 | return b.SendMessage(win.BM_GETCHECK, 0, 0) == win.BST_CHECKED |
no test coverage detected