mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 18:00:27 +02:00
Cocoa/TabControl: cleanup
This commit is contained in:
parent
a65b66983d
commit
2cb94a73ee
@ -911,12 +911,11 @@ end;
|
||||
class procedure TCocoaWSCustomTabControl.SetTabPosition(const ATabControl: TCustomTabControl; const ATabPosition: TTabPosition);
|
||||
var
|
||||
lTabControl: TCocoaTabControl = nil;
|
||||
lOldTabStyle, lTabStyle: NSTabViewType;
|
||||
lTabStyle: NSTabViewType;
|
||||
begin
|
||||
if not Assigned(ATabControl) or not ATabControl.HandleAllocated then Exit;
|
||||
lTabControl := TCocoaTabControl(ATabControl.Handle);
|
||||
|
||||
lOldTabStyle := lTabControl.tabViewType();
|
||||
lTabStyle := LCLTabPosToNSTabStyle(ATabControl.ShowTabs, ATabControl.BorderWidth, ATabPosition);
|
||||
lTabControl.setTabViewType(lTabStyle);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user