Skip to content

Commit 03d9dd1

Browse files
committed
Fixed disabled controls fade bug in world preferences. See comment.
1 parent 8576525 commit 03d9dd1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

dialogs/world_prefs/TreePropertySheet.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,17 @@ void CTreePropertySheet::OnSelChanged(
207207
int dwPage=m_cTreeCtrl.GetItemData(pNotify->itemNew.hItem);
208208
LockWindowUpdate();
209209
if (GetPageIndex(GetActivePage()) != dwPage) // NJG
210+
{
211+
/* Theming has these nice fades inbetween controls being disabled and enabled.
212+
* That is all nice and well, but switching a page for the _first_ time since
213+
* the dialog had been opened causes the dialog controls to be updated in plain
214+
* sight - a rather visible and eye-catching affair once you are aware of it.
215+
* Updating the dialog controls manually before switching to the active page
216+
* causes these updates to be done while the user cannot see it. -JW
217+
*/
218+
GetPage(dwPage)->UpdateDialogControls(this, false);
210219
SetActivePage(dwPage);
220+
}
211221
UnlockWindowUpdate();
212222

213223
// Prevent losing the focus when invoked by keyboard

0 commit comments

Comments
 (0)