Nick Blunda 1 Posted February 25, 2024 (edited) Hi. It is possible to hide "Window" item of system menu in macOS? Edited February 25, 2024 by Nick Blunda Share this post Link to post
Dave Nottage 577 Posted February 25, 2024 24 minutes ago, Nick Blunda said: It is possible to hide "Window" item of system menu in macOS? Example code for how to do it: uses Macapi.AppKit, Macapi.Helpers; procedure TForm1.Button1Click(Sender: TObject); var LMenu: NSMenu; LIndex: Integer; begin LMenu := TNSApplication.Wrap(TNSApplication.OCClass.sharedApplication).mainMenu; LIndex := LMenu.indexOfItemWithTitle(StrToNSStr('Window')); if LIndex > -1 then LMenu.itemAtIndex(LIndex).setHidden(True); end; 2 Share this post Link to post