Hands-On GUI Application Development in Go
上QQ阅读APP看书,第一时间看更新

Controls

All the widgets defined in andlabs UI implement the Control interface and, as such, can be shown, hidden, enabled, or disabled and set as the content of a window through SetChild() (with the obvious exception of ui.Window). A window may not be the child of any other ui.Control, for obvious reasons. The definition of show() and hide() for a window will be set by the operating system or widget toolkit, as will the manner of disabling the window content.