mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-25 23:40:06 +02:00
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:
parent
a722a7b722
commit
902e862bf2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user