Commit 871f6315 authored by Juha Manninen's avatar Juha Manninen
Browse files

LCL: Don't turn TScrollBar.Visible False when changing Kind property....

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 -
parent 5771737d
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment