always show scrollbar before setting info

git-svn-id: trunk@5557 -
This commit is contained in:
micha 2004-06-12 07:25:35 +00:00
parent 80ba271c3a
commit 8f84821bd3

View File

@ -3498,8 +3498,8 @@ begin
ShowScrollBar(Handle, SB_HORZ, false); ShowScrollBar(Handle, SB_HORZ, false);
end else begin end else begin
FLastHorzScrollInfo:=ScrollInfo; FLastHorzScrollInfo:=ScrollInfo;
SetScrollInfo(Handle, SB_HORZ, ScrollInfo, True); ShowScrollBar(Handle, SB_HORZ, true);
ShowScrollBar(Handle,SB_HORZ,True); SetScrollInfo(Handle, SB_HORZ, ScrollInfo, true);
end; end;
end; end;
//DebugLn('>>>>>>>>>> [TCustomTreeView.UpdateScrollbars] nMin=',ScrollInfo.nMin, //DebugLn('>>>>>>>>>> [TCustomTreeView.UpdateScrollbars] nMin=',ScrollInfo.nMin,
@ -3531,8 +3531,8 @@ begin
ShowScrollBar(Handle, SB_VERT, false); ShowScrollBar(Handle, SB_VERT, false);
end else begin end else begin
FLastVertScrollInfo:=ScrollInfo; FLastVertScrollInfo:=ScrollInfo;
SetScrollInfo(Handle, SB_VERT, ScrollInfo, True); ShowScrollBar(Handle, SB_VERT, true);
ShowScrollBar(Handle,SB_VERT,True); SetScrollInfo(Handle, SB_VERT, ScrollInfo, true);
end; end;
end; end;
//DebugLn('>>>>>>>>>> [TCustomTreeView.UpdateScrollbars] Vert On nMin=',ScrollInfo.nMin, //DebugLn('>>>>>>>>>> [TCustomTreeView.UpdateScrollbars] Vert On nMin=',ScrollInfo.nMin,