<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Lazarus Pascal - macOS - Make FullScreen button (green) only maximize the window (not fullscreen) - Delphi, Lazarus, Free Pascal				            </title>
            <link>https://www.tweaking4all.com/forum/delphi-lazarus-free-pascal/lazarus-pascal-macos-make-fullscreen-button-green-only-maximize-the-window-not-fullscreen/</link>
            <description>Tweaking4All.com Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 17 Mar 2026 00:00:46 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Lazarus Pascal - macOS - Make FullScreen button (green) only maximize the window (not fullscreen)</title>
                        <link>https://www.tweaking4all.com/forum/delphi-lazarus-free-pascal/lazarus-pascal-macos-make-fullscreen-button-green-only-maximize-the-window-not-fullscreen/#post-3332</link>
                        <pubDate>Tue, 13 Apr 2021 11:32:56 +0000</pubDate>
                        <description><![CDATA[Interesting question I found on the Lazarus Forum for which I found an answer:
In macOS the green button (upper left corner of each window) makes a window FULLSCREEN and not (like with othe...]]></description>
                        <content:encoded><![CDATA[<p>Interesting question I found on the Lazarus Forum for which I found an answer:</p>
<p>In macOS the green button (upper left corner of each window) makes a window FULLSCREEN and not (like with other operating systems) just maximizes the window.</p>
<p>There is a trick to change this behavior though, so here 2 functions I made to disable and enable the fullscreen behavior.<br />You can disable the fullscreen behavior (becomes maximize) and enable it again if needed.</p>
<pre contenteditable="false">procedure DisableFullscreenButton(theForm: TForm);
var
  theWindow: NSWindow;
begin
  theWindow := NSView(theForm.Handle).window;       // Form1 is the name of the main form - adjust as necessary
  theWindow.setCollectionBehavior(theWindow.collectionBehavior or NSWindowCollectionBehaviorFullScreenAuxiliary);
end;

procedure EnableFullscreenButton(theForm: TForm);
var
  theWindow: NSWindow;
begin
  theWindow := NSView(theForm.Handle).window;       // Form1 is the name of the main form - adjust as necessary
  theWindow.setCollectionBehavior(theWindow.collectionBehavior and NSWindowCollectionBehaviorFullScreenPrimary);
end;</pre>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/delphi-lazarus-free-pascal/">Delphi, Lazarus, Free Pascal</category>                        <dc:creator>Hans</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/delphi-lazarus-free-pascal/lazarus-pascal-macos-make-fullscreen-button-green-only-maximize-the-window-not-fullscreen/#post-3332</guid>
                    </item>
							        </channel>
        </rss>
		