<?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 - Laat de FullScreen knop (groen) het window maximaliseren (dus niet fullscreen) - Delphi, Lazarus, Free Pascal				            </title>
            <link>https://www.tweaking4all.nl/forum/delphi-lazarus-free-pascal/lazarus-pascal-macos-laat-de-fullscreen-knop-groen-het-window-maximaliseren-dus-niet-fullscreen/</link>
            <description>Tweaking4All.nl Discussie Forum</description>
            <language>nl-NL</language>
            <lastBuildDate>Thu, 12 Mar 2026 16:15:31 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Lazarus Pascal - macOS - Laat de FullScreen knop (groen) het window maximaliseren (dus niet fullscreen)</title>
                        <link>https://www.tweaking4all.nl/forum/delphi-lazarus-free-pascal/lazarus-pascal-macos-laat-de-fullscreen-knop-groen-het-window-maximaliseren-dus-niet-fullscreen/#post-1392</link>
                        <pubDate>Tue, 13 Apr 2021 11:32:58 +0000</pubDate>
                        <description><![CDATA[Een oplossing die ik bedacht heb op basis van een interessante vraag in het Lazarus forum:
In macOS zal het groene knopje (elke venster heeft die, links bovenin) een window schermvullend (f...]]></description>
                        <content:encoded><![CDATA[<p>Een oplossing die ik bedacht heb op basis van een interessante vraag in het Lazarus forum:</p>
<p>In macOS zal het groene knopje (elke venster heeft die, links bovenin) een window schermvullend (fullscreen) maken en niet maximaliseren zoals we dat op andere besturingssystemen zien.</p>
<p>Daarom heb ik twee functies gemaakt die dit gedraag uitzetten (normaal maximaliseren) of weer aanzet (fullscreen).</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.nl/forum/delphi-lazarus-free-pascal/">Delphi, Lazarus, Free Pascal</category>                        <dc:creator>Hans</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.nl/forum/delphi-lazarus-free-pascal/lazarus-pascal-macos-laat-de-fullscreen-knop-groen-het-window-maximaliseren-dus-niet-fullscreen/#post-1392</guid>
                    </item>
							        </channel>
        </rss>
		