mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 17:39:23 +02:00
Gtk2: fixed crash under 64bit when changing orientation of trackbar.
git-svn-id: trunk@30847 -
This commit is contained in:
parent
5306a46d58
commit
2a26b86c4c
@ -217,6 +217,7 @@ type
|
||||
class procedure ApplyChanges(const ATrackBar: TCustomTrackBar); override;
|
||||
class function GetPosition(const ATrackBar: TCustomTrackBar): integer; override;
|
||||
class procedure SetPosition(const ATrackBar: TCustomTrackBar; const NewPosition: integer); override;
|
||||
class procedure SetOrientation(const ATrackBar: TCustomTrackBar; const AOrientation: TTrackBarOrientation); override;
|
||||
end;
|
||||
|
||||
{ TGtk2WSCustomTreeView }
|
||||
@ -376,6 +377,19 @@ begin
|
||||
Dec(WidgetInfo^.ChangeLock);
|
||||
end;
|
||||
|
||||
class procedure TGtk2WSTrackBar.SetOrientation(
|
||||
const ATrackBar: TCustomTrackBar; const AOrientation: TTrackBarOrientation);
|
||||
begin
|
||||
if not WSCheckHandleAllocated(ATrackBar, 'SetOrientation') then
|
||||
Exit;
|
||||
ATrackBar.Hide;
|
||||
try
|
||||
RecreateWnd(ATrackBar);
|
||||
finally
|
||||
ATrackBar.Show;
|
||||
end;
|
||||
end;
|
||||
|
||||
{ TGtk2WSProgressBar }
|
||||
|
||||
class procedure TGtk2WSProgressBar.UpdateProgressBarText(const AProgressBar: TCustomProgressBar);
|
||||
|
Loading…
Reference in New Issue
Block a user