<?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>Thu, 16 Apr 2026 00:30:45 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 id="" 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="#code019d93b28d0574aa8d0265a6bc650c06" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019d93b28d0574aa8d0265a6bc650c06Js'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;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="code019d93b28d0574aa8d0265a6bc650c06Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;
using System.Windows.Forms;
// The 'windowHandle' parameter will contain the window handle for the:
//   - Active window when run by hotkey
//   - Window Location target when run by a Window Location rule
//   - TitleBar Button owner when run by a TitleBar Button
//   - Jump List owner when run from a Taskbar Jump List
//   - Currently focused window if none of these match
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
//these are all of the functions from the "Window Management" functions list
//the function are just called by their names. to find their names, you can copy them
//from the context menus, or type "BFS.DisplayFusion.RunFunction(" and a window will come up
//with all of the available functions
//"--- Abbrechen ---" is german for "cancel". Used to cancel the action, see below "MenuItem_Click"
BFS.DisplayFusion.RunFunction("Prevent Window Deactivation (keeps game windows focused)");
string[, ,] MenuEntries =
{
//{{ "Background-Color", "Foreground-Color", "Function-Name", }}
{{ "WhiteSmoke", "Black", "🢁" }},
{{ "WhiteSmoke", "Black", "🢀" }},
{{ "WhiteSmoke", "Black", "🢂" }},
{{ "WhiteSmoke", "Black", "🢃" }},
};
//create a new ContextMenuStrip to show the items
using(ContextMenuStrip menu = new ContextMenuStrip())
{
//dont show the padding on the left of the menu
menu.ShowCheckMargin = false;
menu.ShowImageMargin = false;
//add items to the menu, and use our custom function when a user clicks on the items
for ( int i = 0; i &lt; ( MenuEntries.Length / MenuEntries.Rank ); i++ )
{
menu.Items.Add(MenuEntries[i, 0, 2]);
menu.Items[menu.Items.Count - 1].Click += MenuItem_Click;
menu.Items[menu.Items.Count - 1].BackColor = Color.FromName( MenuEntries[i, 0, 0]);
menu.Items[menu.Items.Count - 1].ForeColor = Color.FromName( MenuEntries[i, 0, 1]);
}
//if the menu will show on the screen, show it. otherwise, show it above the mouse
if(BFS.Monitor.GetMonitorBoundsByMouseCursor().Contains(new Point(BFS.Input.GetMousePositionX(), BFS.Input.GetMousePositionY() + menu.Height)))
menu.Show(BFS.Input.GetMousePositionX(), BFS.Input.GetMousePositionY());
else
menu.Show(new Point(BFS.Input.GetMousePositionX(), BFS.Input.GetMousePositionY()), ToolStripDropDownDirection.AboveRight);
//set focus to the menu
BFS.Window.Focus(menu.Handle);
//wait for the menu to close
while(menu.Visible)
Application.DoEvents();
BFS.DisplayFusion.RunFunction("Prevent Window Deactivation (keeps game windows focused)");
}
}
//this function will get the text of the item and try to run it as a DisplayFusion function
//"--- Abbrechen ---" (Cancel), change it to what you used in MenuEntries-List
private static void MenuItem_Click(object sender, EventArgs e)
{
ToolStripItem item = sender as ToolStripItem;
if (item == null || item.Text == "--- Abbrechen ---")
return;
BFS.DisplayFusion.RunFunction(item.Text);
}
}</pre><textarea id="code019d93b28d0574aa8d0265a6bc650c06" name="code019d93b28d0574aa8d0265a6bc650c06" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
Diagonal<br/>
<div id="" 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="#code019d93b28d097141a064992a49e392e3" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019d93b28d097141a064992a49e392e3Js'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;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="code019d93b28d097141a064992a49e392e3Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;
using System.Windows.Forms;
// The 'windowHandle' parameter will contain the window handle for the:
//   - Active window when run by hotkey
//   - Window Location target when run by a Window Location rule
//   - TitleBar Button owner when run by a TitleBar Button
//   - Jump List owner when run from a Taskbar Jump List
//   - Currently focused window if none of these match
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
//these are all of the functions from the "Window Management" functions list
//the function are just called by their names. to find their names, you can copy them
//from the context menus, or type "BFS.DisplayFusion.RunFunction(" and a window will come up
//with all of the available functions
//"--- Abbrechen ---" is german for "cancel". Used to cancel the action, see below "MenuItem_Click"
BFS.DisplayFusion.RunFunction("Prevent Window Deactivation (keeps game windows focused)");
string[, ,] MenuEntries =
{
//{{ "Background-Color", "Foreground-Color", "Function-Name", }}
{{ "WhiteSmoke", "Black", "🢅" }},
{{ "WhiteSmoke", "Black", "🢄" }},
{{ "WhiteSmoke", "Black", "🢆" }},
{{ "WhiteSmoke", "Black", "🢇" }},
};
//create a new ContextMenuStrip to show the items
using(ContextMenuStrip menu = new ContextMenuStrip())
{
//dont show the padding on the left of the menu
menu.ShowCheckMargin = false;
menu.ShowImageMargin = false;
//add items to the menu, and use our custom function when a user clicks on the items
for ( int i = 0; i &lt; ( MenuEntries.Length / MenuEntries.Rank ); i++ )
{
menu.Items.Add(MenuEntries[i, 0, 2]);
menu.Items[menu.Items.Count - 1].Click += MenuItem_Click;
menu.Items[menu.Items.Count - 1].BackColor = Color.FromName( MenuEntries[i, 0, 0]);
menu.Items[menu.Items.Count - 1].ForeColor = Color.FromName( MenuEntries[i, 0, 1]);
}
//if the menu will show on the screen, show it. otherwise, show it above the mouse
if(BFS.Monitor.GetMonitorBoundsByMouseCursor().Contains(new Point(BFS.Input.GetMousePositionX(), BFS.Input.GetMousePositionY() + menu.Height)))
menu.Show(BFS.Input.GetMousePositionX(), BFS.Input.GetMousePositionY());
else
menu.Show(new Point(BFS.Input.GetMousePositionX(), BFS.Input.GetMousePositionY()), ToolStripDropDownDirection.AboveRight);
//set focus to the menu
BFS.Window.Focus(menu.Handle);
//wait for the menu to close
while(menu.Visible)
Application.DoEvents();
BFS.DisplayFusion.RunFunction("Prevent Window Deactivation (keeps game windows focused)");
}
}
//this function will get the text of the item and try to run it as a DisplayFusion function
//"--- Abbrechen ---" (Cancel), change it to what you used in MenuEntries-List
private static void MenuItem_Click(object sender, EventArgs e)
{
ToolStripItem item = sender as ToolStripItem;
if (item == null || item.Text == "--- Abbrechen ---")
return;
BFS.DisplayFusion.RunFunction(item.Text);
}
}</pre><textarea id="code019d93b28d097141a064992a49e392e3" name="code019d93b28d097141a064992a49e392e3" 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>