From de9396ec0e83bb34636709c35ecdd08bc16ea92b Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 24 Mar 2010 16:03:53 +0000 Subject: [PATCH] *CtrlLib: ArrayCtrl::SetLine now does Refresh git-svn-id: svn://ultimatepp.org/upp/trunk@2265 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlLib/ArrayCtrl.cpp | 1 + uppsrc/CtrlLib/TabCtrl.cpp | 2 ++ uppsrc/CtrlLib/src.tpp/TabCtrl$en-us.tpp | 3 +++ 3 files changed, 6 insertions(+) diff --git a/uppsrc/CtrlLib/ArrayCtrl.cpp b/uppsrc/CtrlLib/ArrayCtrl.cpp index ef54d914f..31a66504a 100644 --- a/uppsrc/CtrlLib/ArrayCtrl.cpp +++ b/uppsrc/CtrlLib/ArrayCtrl.cpp @@ -589,6 +589,7 @@ ArrayCtrl& ArrayCtrl::SetLineCy(int cy) linecy = cy; Reline(0, 0); sb.SetLine(cy); + Refresh(); return *this; } diff --git a/uppsrc/CtrlLib/TabCtrl.cpp b/uppsrc/CtrlLib/TabCtrl.cpp index 3c2f6574a..7e79bcf96 100644 --- a/uppsrc/CtrlLib/TabCtrl.cpp +++ b/uppsrc/CtrlLib/TabCtrl.cpp @@ -229,6 +229,8 @@ void TabCtrl::SyncHot() hot = h; tabs.Refresh(); } + if(IsReadOnly()) + hot = -1; } void TabCtrl::MouseMove(Point p, dword keyflags) diff --git a/uppsrc/CtrlLib/src.tpp/TabCtrl$en-us.tpp b/uppsrc/CtrlLib/src.tpp/TabCtrl$en-us.tpp index 148640b90..e1494984e 100644 --- a/uppsrc/CtrlLib/src.tpp/TabCtrl$en-us.tpp +++ b/uppsrc/CtrlLib/src.tpp/TabCtrl$en-us.tpp @@ -265,6 +265,9 @@ separate pages switched by clicking header tabs.&] widget (usually slave dialog pane).&] [s9; Value of TabCtrl (accessed by GetData() / SetData() or respective shortcut operators) is the index of active tab.&] +[s9; TabCtrl responds to SetReadOnly / SetEditable method calls by +locking / unlocking itself in currently active tab w.r.t. user +actions.&] [s3; &] [s0;%- &] [ {{10000F(128)G(128)@1 [s0; [* Public Member List]]}}&]