<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>DisplayFusion RSS: Trigger/Function to Hide the TitleBar Buttons when Window is small?</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=57397147-a2fd-4451-94aa-32837fc4bd88" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=57397147-a2fd-4451-94aa-32837fc4bd88</link>
<description>DisplayFusion RSS: Trigger/Function to Hide the TitleBar Buttons when Window is small?</description>
<lastBuildDate>Sat, 07 Nov 2026 15:49:31 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=57397147-a2fd-4451-94aa-32837fc4bd88</generator>
<item>
<title>RE: Trigger/Function to Hide the TitleBar Buttons when Window is small?</title>
<link>https://www.displayfusion.com/Discussions/View/triggerfunction-to-hide-the-titlebar-buttons-when-window-is-small/?ID=57397147-a2fd-4451-94aa-32837fc4bd88#3</link>
<pubDate>Thu, 21 May 2020 13:26:50 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/triggerfunction-to-hide-the-titlebar-buttons-when-window-is-small/?ID=57397147-a2fd-4451-94aa-32837fc4bd88#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Awesome!!  Thanks!!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Awesome!!  Thanks!!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger/Function to Hide the TitleBar Buttons when Window is small?</title>
<link>https://www.displayfusion.com/Discussions/View/triggerfunction-to-hide-the-titlebar-buttons-when-window-is-small/?ID=57397147-a2fd-4451-94aa-32837fc4bd88#2</link>
<pubDate>Wed, 20 May 2020 23:18:35 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/triggerfunction-to-hide-the-titlebar-buttons-when-window-is-small/?ID=57397147-a2fd-4451-94aa-32837fc4bd88#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[No need for a Trigger rule for this, there's an Advanced Setting that does this
In Settings  Advanced Settings, set the width in pixels on this setting: TitleBar Buttons: Minimum Window Width
Hope that helps!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
No need for a Trigger rule for this, there's an Advanced Setting that does this <img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-smile.light.svg" alt=":)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":)" /><br/>
<br/>
In Settings > Advanced Settings, set the width in pixels on this setting: <div class="Inline"><pre>TitleBar Buttons: Minimum Window Width</pre></div><br/>
<br/>
Hope that helps!
</div>
]]></content:encoded>
</item>
<item>
<title>Trigger/Function to Hide the TitleBar Buttons when Window is small?</title>
<link>https://www.displayfusion.com/Discussions/View/triggerfunction-to-hide-the-titlebar-buttons-when-window-is-small/?ID=57397147-a2fd-4451-94aa-32837fc4bd88</link>
<pubDate>Wed, 20 May 2020 21:29:14 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/triggerfunction-to-hide-the-titlebar-buttons-when-window-is-small/?ID=57397147-a2fd-4451-94aa-32837fc4bd88</guid>
<category>DisplayFusion</category>
<description><![CDATA[Just that..  I've been trying to write a function to call from a trigger, but it's been a long time since I've done any programming.  Seems like someone might have done this already?  I want to hide the Titlebar Buttons when the window is less than a certain width.  So far I've got this.  But it ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Just that..  I've been trying to write a function to call from a trigger, but it's been a long time since I've done any programming.  Seems like someone might have done this already?  I want to hide the Titlebar Buttons when the window is less than a certain width.  So far I've got this.  But it just toggles it on and off globally on all windows.  <br/>
<br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code01a1b6b3627f7587975d39ee35dc8329" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code01a1b6b3627f7587975d39ee35dc8329Js'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code01a1b6b3627f7587975d39ee35dc8329Js" name="code01a1b6b3627f7587975d39ee35dc8329Js" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">using System;&#xA;using System.Drawing;&#xA;&#xA;// The &#x27;windowHandle&#x27; parameter will contain the window handle for the:&#xA;//   - Active window when run by hotkey&#xA;//   - Trigger target when run by a Trigger rule&#xA;//   - TitleBar Button owner when run by a TitleBar Button&#xA;//   - Jump List owner when run from a Taskbar Jump List&#xA;//   - Currently focused window if none of these match&#xA;public static class DisplayFusionFunction&#xA;{&#xA;    public static void Run(IntPtr windowHandle)&#xA;    {    &#xA;        //get the bounds of the current window&#xA;        Rectangle windowBounds = BFS.Window.GetBounds(windowHandle);&#xA;        {&#xA;        //if the window is less than X&#xA;        if(windowBounds.Width&amp;lt;200)        // Toggle the TitleBar Buttons&#xA;            BFS.DisplayFusion.RunFunction(&quot;Toggle TitleBar Buttons&quot;);&#xA;         //   BFS.DisplayFusion.RunFunctionWithWindowHandle&#xA;        }&#xA;    }&#xA;}</pre><textarea id="code01a1b6b3627f7587975d39ee35dc8329" name="code01a1b6b3627f7587975d39ee35dc8329" style="position:absolute;top:0;left:-999999px;width:1px;height:1px"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
</channel>
</rss>