diff options
author | Alexander Neumann <alexander.neumann@picos-software.com> | 2015-08-12 12:35:45 +0200 |
---|---|---|
committer | Alexander Neumann <alexander.neumann@picos-software.com> | 2015-08-12 12:35:45 +0200 |
commit | 2b85a29069e326e187d07fe6aa0e6c3809e1b579 (patch) | |
tree | 23ba37850174c5bd6dd668732272a1d56d46cb55 /groupbox.go | |
parent | Action: Call raiseChanged when setting conditions (diff) | |
download | wireguard-windows-2b85a29069e326e187d07fe6aa0e6c3809e1b579.tar.xz wireguard-windows-2b85a29069e326e187d07fe6aa0e6c3809e1b579.zip |
Improve enabled propagation
Diffstat (limited to 'groupbox.go')
-rw-r--r-- | groupbox.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/groupbox.go b/groupbox.go index 3a7e7d32..0774ab74 100644 --- a/groupbox.go +++ b/groupbox.go @@ -111,6 +111,18 @@ func (gb *GroupBox) ClientBounds() Rectangle { return Rectangle{cb.X + 1, cb.Y + 14, cb.Width - 2, cb.Height - 9} } +func (gb *GroupBox) applyEnabled(enabled bool) { + gb.WidgetBase.applyEnabled(enabled) + + if gb.hWndGroupBox != 0 { + setWindowEnabled(gb.hWndGroupBox, enabled) + } + + if gb.composite != nil { + gb.composite.applyEnabled(enabled) + } +} + func (gb *GroupBox) applyFont(font *Font) { gb.WidgetBase.applyFont(font) |