mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-08 12:59:53 +02:00
always show scrollbar before setting info
git-svn-id: trunk@5557 -
This commit is contained in:
parent
80ba271c3a
commit
8f84821bd3
@ -3495,11 +3495,11 @@ begin
|
||||
if (fScrollBars in [ssAutoBoth, ssAutoHorizontal])
|
||||
and (ScrollInfo.nPage>=cardinal(ScrollInfo.nMax)) then begin
|
||||
FLastHorzScrollInfo.cbSize:=0;
|
||||
ShowScrollBar(Handle,SB_HORZ,false);
|
||||
ShowScrollBar(Handle, SB_HORZ, false);
|
||||
end else begin
|
||||
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;
|
||||
//DebugLn('>>>>>>>>>> [TCustomTreeView.UpdateScrollbars] nMin=',ScrollInfo.nMin,
|
||||
@ -3528,11 +3528,11 @@ begin
|
||||
if (fScrollBars in [ssAutoBoth, ssAutoVertical])
|
||||
and (ScrollInfo.nPage>=cardinal(ScrollInfo.nMax)) then begin
|
||||
FLastVertScrollInfo.cbSize:=0;
|
||||
ShowScrollBar(Handle,SB_VERT,false);
|
||||
ShowScrollBar(Handle, SB_VERT, false);
|
||||
end else begin
|
||||
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;
|
||||
//DebugLn('>>>>>>>>>> [TCustomTreeView.UpdateScrollbars] Vert On nMin=',ScrollInfo.nMin,
|
||||
|
Loading…
Reference in New Issue
Block a user