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

(cherry picked from commit 90efbfef0f)
This commit is contained in:
Dmitry Boyarintsev 2021-09-03 21:25:21 -04:00 committed by Maxim Ganetsky
parent a722a7b722
commit 902e862bf2

View File

@ -644,6 +644,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;