mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-25 03:19:15 +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);
|
||||
if not Assigned(page) then Exit;
|
||||
page.setLabel(ControlTitleToNSStr(AText));
|
||||
|
||||
if (AWinControl.Parent <> nil)
|
||||
and (AWinControl.Parent is TCustomTabControl)
|
||||
and (AWinControl.HandleAllocated)
|
||||
then
|
||||
UpdateTabAndArrowVisibility( TCocoaTabControl(AWinControl.Parent.Handle) );
|
||||
end;
|
||||
|
||||
class function TCocoaWSCustomPage.GetText(const AWinControl: TWinControl;
|
||||
|
Loading…
Reference in New Issue
Block a user