LCL: Don't turn TScrollBar.Visible False when changing Kind property. AScrollBar.Show did not work due to flag tests. Issue #29422

git-svn-id: trunk@51361 -
This commit is contained in:
juha 2016-01-20 19:29:31 +00:00
parent 5771737dee
commit 871f631591

View File

@ -2686,20 +2686,10 @@ end;
class procedure TGtk2WSScrollBar.SetKind(const AScrollBar: TCustomScrollBar;
const AIsHorizontal: Boolean);
var
B: Boolean;
begin
if not AScrollBar.HandleAllocated then
exit;
B := AScrollBar.Visible;
if B then
AScrollBar.Hide;
try
RecreateWnd(AScrollBar);
finally
if B then
AScrollBar.Show;
end;
RecreateWnd(AScrollBar);
end;
class procedure TGtk2WSScrollBar.SetParams(const AScrollBar: TCustomScrollBar);