mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 05:37:14 +01:00
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:
parent
5771737dee
commit
871f631591
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user