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]]}}&]