<?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: Possible Solution for Multi Titlebar buttons and containers</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=83000ce1-3325-45dc-8b19-b5f6b502c2b6" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=83000ce1-3325-45dc-8b19-b5f6b502c2b6</link>
<description>DisplayFusion RSS: Possible Solution for Multi Titlebar buttons and containers</description>
<lastBuildDate>Sat, 10 Oct 2026 12:35:09 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=83000ce1-3325-45dc-8b19-b5f6b502c2b6</generator>
<item>
<title>Possible Solution for Multi Titlebar buttons and containers</title>
<link>https://www.displayfusion.com/Discussions/View/possible-solution-for-multi-titlebar-buttons-and-containers/?ID=83000ce1-3325-45dc-8b19-b5f6b502c2b6</link>
<pubDate>Mon, 29 Aug 2022 10:36:58 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/possible-solution-for-multi-titlebar-buttons-and-containers/?ID=83000ce1-3325-45dc-8b19-b5f6b502c2b6</guid>
<category>DisplayFusion</category>
<description><![CDATA[So it looks like this has been a problem for a long time.
https://www.displayfusion.com/Discussions/View/feature-request-add-a-special-titlebar-button-that-when-clicked-acts-as-a-vertical-container-for-others-titlebar-buttons/?ID=c52621f6-8ad9-46b1-8222-015f7964f476
https://www.displayfusion.co...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
So it looks like this has been a problem for a long time.<br/>
<a href="https://www.displayfusion.com/Discussions/View/feature-request-add-a-special-titlebar-button-that-when-clicked-acts-as-a-vertical-container-for-others-titlebar-buttons/?ID=c52621f6-8ad9-46b1-8222-015f7964f476" target="_blank" rel="nofollow"><b>https://www.displayfusion.com/Discussions/View/feature-request-add-a-special-titlebar-button-that-when-clicked-acts-as-a-vertical-container-for-others-titlebar-buttons/?ID=c52621f6-8ad9-46b1-8222-015f7964f476</b></a><br/>
<a href="https://www.displayfusion.com/Discussions/View/a-suggestion-to-improve-the-usability-of-the-titlebar-buttons/?ID=2fc20993-50eb-4dce-b08f-0813639083c3" target="_blank" rel="nofollow"><b>https://www.displayfusion.com/Discussions/View/a-suggestion-to-improve-the-usability-of-the-titlebar-buttons/?ID=2fc20993-50eb-4dce-b08f-0813639083c3</b></a><br/>
I may have a workaround.  Based on the work in the first link.<br/>
1. Use Unicode Characters to Describe the function and therefore the use it as an Icon.<br/>
2. Rename functions according to unicode graphic description.<br/>
3. Create new icons for your custom menus.<br/>
For Vertical and Horizontal shifting of Windows<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="#code01a125cf5f8173c69a12931ba2e9df5a" 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('code01a125cf5f8173c69a12931ba2e9df5aJs'); 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="code01a125cf5f8173c69a12931ba2e9df5aJs" name="code01a125cf5f8173c69a12931ba2e9df5aJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">using System;&#xA;using System.Drawing;&#xA;using System.Windows.Forms;&#xA;// The &#x27;windowHandle&#x27; parameter will contain the window handle for the:&#xA;//   - Active window when run by hotkey&#xA;//   - Window Location target when run by a Window Location 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;//these are all of the functions from the &quot;Window Management&quot; functions list&#xA;//the function are just called by their names. to find their names, you can copy them&#xA;//from the context menus, or type &quot;BFS.DisplayFusion.RunFunction(&quot; and a window will come up&#xA;//with all of the available functions&#xA;//&quot;--- Abbrechen ---&quot; is german for &quot;cancel&quot;. Used to cancel the action, see below &quot;MenuItem_Click&quot;&#xA;BFS.DisplayFusion.RunFunction(&quot;Prevent Window Deactivation (keeps game windows focused)&quot;);&#xA;string[, ,] MenuEntries =&#xA;{&#xA;//{{ &quot;Background-Color&quot;, &quot;Foreground-Color&quot;, &quot;Function-Name&quot;, }}&#xA;{{ &quot;WhiteSmoke&quot;, &quot;Black&quot;, &quot;&#x1F881;&quot; }},&#xA;{{ &quot;WhiteSmoke&quot;, &quot;Black&quot;, &quot;&#x1F880;&quot; }},&#xA;{{ &quot;WhiteSmoke&quot;, &quot;Black&quot;, &quot;&#x1F882;&quot; }},&#xA;{{ &quot;WhiteSmoke&quot;, &quot;Black&quot;, &quot;&#x1F883;&quot; }},&#xA;};&#xA;//create a new ContextMenuStrip to show the items&#xA;using(ContextMenuStrip menu = new ContextMenuStrip())&#xA;{&#xA;//dont show the padding on the left of the menu&#xA;menu.ShowCheckMargin = false;&#xA;menu.ShowImageMargin = false;&#xA;//add items to the menu, and use our custom function when a user clicks on the items&#xA;for ( int i = 0; i &amp;lt; ( MenuEntries.Length / MenuEntries.Rank ); i&#x2B;&#x2B; )&#xA;{&#xA;menu.Items.Add(MenuEntries[i, 0, 2]);&#xA;menu.Items[menu.Items.Count - 1].Click &#x2B;= MenuItem_Click;&#xA;menu.Items[menu.Items.Count - 1].BackColor = Color.FromName( MenuEntries[i, 0, 0]);&#xA;menu.Items[menu.Items.Count - 1].ForeColor = Color.FromName( MenuEntries[i, 0, 1]);&#xA;}&#xA;//if the menu will show on the screen, show it. otherwise, show it above the mouse&#xA;if(BFS.Monitor.GetMonitorBoundsByMouseCursor().Contains(new Point(BFS.Input.GetMousePositionX(), BFS.Input.GetMousePositionY() &#x2B; menu.Height)))&#xA;menu.Show(BFS.Input.GetMousePositionX(), BFS.Input.GetMousePositionY());&#xA;else&#xA;menu.Show(new Point(BFS.Input.GetMousePositionX(), BFS.Input.GetMousePositionY()), ToolStripDropDownDirection.AboveRight);&#xA;//set focus to the menu&#xA;BFS.Window.Focus(menu.Handle);&#xA;//wait for the menu to close&#xA;while(menu.Visible)&#xA;Application.DoEvents();&#xA;BFS.DisplayFusion.RunFunction(&quot;Prevent Window Deactivation (keeps game windows focused)&quot;);&#xA;}&#xA;}&#xA;//this function will get the text of the item and try to run it as a DisplayFusion function&#xA;//&quot;--- Abbrechen ---&quot; (Cancel), change it to what you used in MenuEntries-List&#xA;private static void MenuItem_Click(object sender, EventArgs e)&#xA;{&#xA;ToolStripItem item = sender as ToolStripItem;&#xA;if (item == null || item.Text == &quot;--- Abbrechen ---&quot;)&#xA;return;&#xA;BFS.DisplayFusion.RunFunction(item.Text);&#xA;}&#xA;}</pre><textarea id="code01a125cf5f8173c69a12931ba2e9df5a" name="code01a125cf5f8173c69a12931ba2e9df5a" style="position:absolute;top:0;left:-999999px;width:1px;height:1px"></textarea></div>
</div></div></div><br/>
Diagonal<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="#code01a125cf5f85775eabed4db88c990311" 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('code01a125cf5f85775eabed4db88c990311Js'); 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="code01a125cf5f85775eabed4db88c990311Js" name="code01a125cf5f85775eabed4db88c990311Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">using System;&#xA;using System.Drawing;&#xA;using System.Windows.Forms;&#xA;// The &#x27;windowHandle&#x27; parameter will contain the window handle for the:&#xA;//   - Active window when run by hotkey&#xA;//   - Window Location target when run by a Window Location 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;//these are all of the functions from the &quot;Window Management&quot; functions list&#xA;//the function are just called by their names. to find their names, you can copy them&#xA;//from the context menus, or type &quot;BFS.DisplayFusion.RunFunction(&quot; and a window will come up&#xA;//with all of the available functions&#xA;//&quot;--- Abbrechen ---&quot; is german for &quot;cancel&quot;. Used to cancel the action, see below &quot;MenuItem_Click&quot;&#xA;BFS.DisplayFusion.RunFunction(&quot;Prevent Window Deactivation (keeps game windows focused)&quot;);&#xA;string[, ,] MenuEntries =&#xA;{&#xA;//{{ &quot;Background-Color&quot;, &quot;Foreground-Color&quot;, &quot;Function-Name&quot;, }}&#xA;{{ &quot;WhiteSmoke&quot;, &quot;Black&quot;, &quot;&#x1F885;&quot; }},&#xA;{{ &quot;WhiteSmoke&quot;, &quot;Black&quot;, &quot;&#x1F884;&quot; }},&#xA;{{ &quot;WhiteSmoke&quot;, &quot;Black&quot;, &quot;&#x1F886;&quot; }},&#xA;{{ &quot;WhiteSmoke&quot;, &quot;Black&quot;, &quot;&#x1F887;&quot; }},&#xA;};&#xA;//create a new ContextMenuStrip to show the items&#xA;using(ContextMenuStrip menu = new ContextMenuStrip())&#xA;{&#xA;//dont show the padding on the left of the menu&#xA;menu.ShowCheckMargin = false;&#xA;menu.ShowImageMargin = false;&#xA;//add items to the menu, and use our custom function when a user clicks on the items&#xA;for ( int i = 0; i &amp;lt; ( MenuEntries.Length / MenuEntries.Rank ); i&#x2B;&#x2B; )&#xA;{&#xA;menu.Items.Add(MenuEntries[i, 0, 2]);&#xA;menu.Items[menu.Items.Count - 1].Click &#x2B;= MenuItem_Click;&#xA;menu.Items[menu.Items.Count - 1].BackColor = Color.FromName( MenuEntries[i, 0, 0]);&#xA;menu.Items[menu.Items.Count - 1].ForeColor = Color.FromName( MenuEntries[i, 0, 1]);&#xA;}&#xA;//if the menu will show on the screen, show it. otherwise, show it above the mouse&#xA;if(BFS.Monitor.GetMonitorBoundsByMouseCursor().Contains(new Point(BFS.Input.GetMousePositionX(), BFS.Input.GetMousePositionY() &#x2B; menu.Height)))&#xA;menu.Show(BFS.Input.GetMousePositionX(), BFS.Input.GetMousePositionY());&#xA;else&#xA;menu.Show(new Point(BFS.Input.GetMousePositionX(), BFS.Input.GetMousePositionY()), ToolStripDropDownDirection.AboveRight);&#xA;//set focus to the menu&#xA;BFS.Window.Focus(menu.Handle);&#xA;//wait for the menu to close&#xA;while(menu.Visible)&#xA;Application.DoEvents();&#xA;BFS.DisplayFusion.RunFunction(&quot;Prevent Window Deactivation (keeps game windows focused)&quot;);&#xA;}&#xA;}&#xA;//this function will get the text of the item and try to run it as a DisplayFusion function&#xA;//&quot;--- Abbrechen ---&quot; (Cancel), change it to what you used in MenuEntries-List&#xA;private static void MenuItem_Click(object sender, EventArgs e)&#xA;{&#xA;ToolStripItem item = sender as ToolStripItem;&#xA;if (item == null || item.Text == &quot;--- Abbrechen ---&quot;)&#xA;return;&#xA;BFS.DisplayFusion.RunFunction(item.Text);&#xA;}&#xA;}</pre><textarea id="code01a125cf5f85775eabed4db88c990311" name="code01a125cf5f85775eabed4db88c990311" style="position:absolute;top:0;left:-999999px;width:1px;height:1px"></textarea></div>
</div></div></div><br/>
Copy the unicode character for your functions and rename the function to that.<br/>
That then reduced the titlebar width.<br/>
Then go to your Display Fusion buttons folder and create a new foler and icons for your sets.<br/>
Icons attached (white)<br/>
One odd issue is that some unicode characters are not shown in DF functions list properly but it still works.<br/>
If anyone knows how to add an icon to the menu item and then display it in the menu rather than the function name that would solve a low of problems.:<br/>
//{{ "Background-Color", "Foreground-Color", "Function-Name", }}<br/>
{{ "WhiteSmoke", "Black", "Actual Custome Name", "Icon.png" }},<br/>
<br/>
Attached 2 WHITE icons for the titlebar, just invert them for black.
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=76f2da50-920f-4a2f-be5d-bc89217cd1c4"/>
</item>
</channel>
</rss>