SetReadOnly sets whether the NumberEdit is in read-only mode.
(readOnly bool)
| 346 | |
| 347 | // SetReadOnly sets whether the NumberEdit is in read-only mode. |
| 348 | func (ne *NumberEdit) SetReadOnly(readOnly bool) error { |
| 349 | if readOnly != ne.ReadOnly() { |
| 350 | ne.invalidateBorderInParent() |
| 351 | } |
| 352 | |
| 353 | return ne.edit.SetReadOnly(readOnly) |
| 354 | } |
| 355 | |
| 356 | // SpinButtonsVisible returns whether the NumberEdit appears with spin buttons. |
| 357 | func (ne *NumberEdit) SpinButtonsVisible() bool { |
no test coverage detected