mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 15:20:29 +02:00
cocoa: evaluating the need of next and prev arrows on the change of the tab caption
This commit is contained in:
parent
ee4324bbe5
commit
90efbfef0f
@ -645,6 +645,12 @@ begin
|
|||||||
page := GetCocoaTabPageFromHandle(AWinControl.Handle);
|
page := GetCocoaTabPageFromHandle(AWinControl.Handle);
|
||||||
if not Assigned(page) then Exit;
|
if not Assigned(page) then Exit;
|
||||||
page.setLabel(ControlTitleToNSStr(AText));
|
page.setLabel(ControlTitleToNSStr(AText));
|
||||||
|
|
||||||
|
if (AWinControl.Parent <> nil)
|
||||||
|
and (AWinControl.Parent is TCustomTabControl)
|
||||||
|
and (AWinControl.HandleAllocated)
|
||||||
|
then
|
||||||
|
UpdateTabAndArrowVisibility( TCocoaTabControl(AWinControl.Parent.Handle) );
|
||||||
end;
|
end;
|
||||||
|
|
||||||
class function TCocoaWSCustomPage.GetText(const AWinControl: TWinControl;
|
class function TCocoaWSCustomPage.GetText(const AWinControl: TWinControl;
|
||||||
|
Loading…
Reference in New Issue
Block a user