MCPcopy
hub / github.com/lxn/walk / SetReadOnly

Method SetReadOnly

numberedit.go:348–354  ·  view source on GitHub ↗

SetReadOnly sets whether the NumberEdit is in read-only mode.

(readOnly bool)

Source from the content-addressed store, hash-verified

346
347// SetReadOnly sets whether the NumberEdit is in read-only mode.
348func (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.
357func (ne *NumberEdit) SpinButtonsVisible() bool {

Callers 1

NewNumberEditFunction · 0.45

Calls 2

ReadOnlyMethod · 0.95

Tested by

no test coverage detected