cocoa: evaluating the need of next and prev arrows on the change of the tab caption

This commit is contained in:
Dmitry Boyarintsev 2021-09-03 21:25:21 -04:00 committed by Maxim Ganetsky
parent ee4324bbe5
commit 90efbfef0f

View File

@ -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;