From 8f09613193acb9439f7080a7bc7871da518a3831 Mon Sep 17 00:00:00 2001 From: unodgs Date: Thu, 4 Jun 2009 21:14:30 +0000 Subject: [PATCH] Reverted SetFocus changes git-svn-id: svn://ultimatepp.org/upp/trunk@1276 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/DropGrid/DropGrid.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/uppsrc/DropGrid/DropGrid.cpp b/uppsrc/DropGrid/DropGrid.cpp index 73fd64179..ccdc2ee7d 100644 --- a/uppsrc/DropGrid/DropGrid.cpp +++ b/uppsrc/DropGrid/DropGrid.cpp @@ -24,6 +24,7 @@ void DropGrid::PopUpGrid::PopUp(Ctrl *owner, const Rect &r) Close(); SetRect(r); Ctrl::PopUp(owner, true, true, GUI_DropShadows()); + SetFocus(); } void DropGrid::PopUpGrid::CloseNoData() @@ -94,6 +95,7 @@ void DropGrid::Close() Rect r = list.GetRect(); list_width = r.Width(); list_height = r.Height(); + SetFocus(); } void DropGrid::CloseData() @@ -652,6 +654,7 @@ MultiButton::SubButton& DropGrid::GetButton(int n) void DropGrid::DoClearValue() { ClearValue(); + SetFocus(); } void DropGrid::ClearValue() @@ -664,6 +667,7 @@ void DropGrid::ClearValue() UpdateActionRefresh(); else UpdateRefresh(); + SetFocus(); } void DropGrid::Reset()