Options to remove Windows Close & Maximise buttons.

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Burningfeetman
Posts: 21
Joined: 27 Jul 2013 06:32
Location: Sydney, Australia

Options to remove Windows Close & Maximise buttons.

Post by Burningfeetman »

Hi XYplorer peoples,

Is there anyway to remove the Windows Close, Maximise & Minimise buttons? I've skimmed through the XYPlorer.INI file but can't find anything that removes these buttons. A picture below to show what I'm trying to do;

Image

Reason being, I'm trying to compact XYplorer for one specific application that I run, where I'll minimise the in house application browser and replace it with a floating compact XYplorer explorer window.

Being only 2 days new to XYplorer, I've started playing with the INI file and some basic scripting too, but I'm not too sure what would be the best way to change the actual Windows window border & buttons.

Cheers in advanced for any help,
BFM

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Options to remove Windows Close & Maximise buttons.

Post by highend »

Use Autohotkey to do these things...

Code: Select all

#NoTrayIcon
#SingleInstance force

;WS_MAXIMIZEBOX 0x10000 + WS_MINIMIZEBOX 0x20000 + WS_CAPTION 0xC00000 = 0xC30000
WinSet, Style, -0xC30000, ahk_class ThunderRT6FormDC
Compile it and start it right after XYplorer (or invoke XYplorer with a script and run it from there).
One of my scripts helped you out? Please donate via Paypal

binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Options to remove Windows Close & Maximise buttons.

Post by binocular222 »

Unfortunately, whenever you switch tab, the titlebar appear again.
I found no way to remove titlebar completely.

I work around by moving XY window off-screen (but this would not solve Burningfeetman problem)
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Burningfeetman
Posts: 21
Joined: 27 Jul 2013 06:32
Location: Sydney, Australia

Re: Options to remove Windows Close & Maximise buttons.

Post by Burningfeetman »

Thanks for the help! I had a sneaky suspicion that this function might be one for the XYplorer dev team. Autohotkey is a great idea though, but another program & language to learn and use. The script provided semi-works but fails shortly after using XYplorer for a few clicks (as per binocular222's findings).

I think adding a toggle for the Windows titlebar and buttons would be a fairly simple thing to add to XYplorer. Fingers crossed that Don is tempted by this thread, along with the 80 bucks that I just threw his way. ;)

binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Options to remove Windows Close & Maximise buttons.

Post by binocular222 »

I made this wish before and Don said no.
I guess it must be a core functionality of XY, so it's a pain to change
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Burningfeetman
Posts: 21
Joined: 27 Jul 2013 06:32
Location: Sydney, Australia

Re: Options to remove Windows Close & Maximise buttons.

Post by Burningfeetman »

binocular222 wrote:I made this wish before and Don said no.
I guess it must be a core functionality of XY, so it's a pain to change
Nah, I've coded the odd windows application and turning off the title bar buttons is a piece of cake, with minimal implications on the application itself. It's part of the API for windows etc. If I can figure it out and code it, anyone can. Such a feature would be purely included/excluded based on merit, which I'm now hoping to discuss here.

admin
Site Admin
Posts: 67258
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Options to remove Windows Close & Maximise buttons.

Post by admin »

It's easy to remove the titlebar but it will be autorestored whenever the titlebar caption is updated. Exactly this happens in XY when you change the location to a new folder.

Burningfeetman
Posts: 21
Joined: 27 Jul 2013 06:32
Location: Sydney, Australia

Re: Options to remove Windows Close & Maximise buttons.

Post by Burningfeetman »

admin wrote:It's easy to remove the titlebar but it will be autorestored whenever the titlebar caption is updated. Exactly this happens in XY when you change the location to a new folder.
Thanks for hearing me out on this! :D That behavior explains why AHK script only works on XYplorer launch but then breaks once the program is used. My screenshot below will hopefully convey my ideas on this further. With XYplorer being such a powerful file browser tool, it could be configured to assist applications that have inbuilt browsers that are feature limited/useless, which in saying, could open up a whole new market to XYplorer once frustrated users realise its potential for this purpose.

Image

I notice that the active location is duplicated in both the titlebar and address bar, so if "autorestore" were toggled off, this wouldn't be of too much concern.
The rest of the information found in the titlebar, the active .ini file & XYplorer version could be displayed else where if required too, or even simply not at all. If from a developer point of view, you're concerned that users might not know that they're using XYplorer as this titlebar is hidden, perhaps a trade off for those of us who hide it (toggle it off via the .ini) , get a 1 second splash screen with the XYplorer icon & version info?

One other feature that I'd like to ask about (which fits into my overall goal of using XYplorer to replace an in-application browser) is; can XYplorer also have a toggle added so that it always remains on top of all other applications (similar to Windows Task Manager)? That way when the below application (with the crap in house file browser) is being manipulated/used, XYplorer will remain on top in it's own corner, ready for interaction at any given time.

Thanks again,
BFM

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Options to remove Windows Close & Maximise buttons.

Post by highend »

Why not just use a SetTimer command in Autohotkey?

Code: Select all

#NoTrayIcon
#SingleInstance force
#Persistent

SetTimer, RemoveWindowElements, 100
return

RemoveWindowElements:
;WS_MAXIMIZEBOX 0x10000 + WS_MINIMIZEBOX 0x20000 + WS_CAPTION 0xC00000 = 0xC30000
WinSet, Style, -0xC30000, ahk_class ThunderRT6FormDC
return
100 msecs should be enough (this app won't consume any noticable amount of cpu power with it)...
One of my scripts helped you out? Please donate via Paypal

RalphM
Posts: 2143
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Options to remove Windows Close & Maximise buttons.

Post by RalphM »

Just my 0.02 ct: If you set the title bar template without the part for the current path so it isn't updated anymore with each change of tab, wouldn't that keep it hidden then?
Ralph :)
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Options to remove Windows Close & Maximise buttons.

Post by binocular222 »

SetTimer works, but whenever change tab, XY window flash, too annoying to me.
I tried to fix titlebartemplate, but no use
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

admin
Site Admin
Posts: 67258
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Options to remove Windows Close & Maximise buttons.

Post by admin »

RalphM wrote:Just my 0.02 ct: If you set the title bar template without the part for the current path so it isn't updated anymore with each change of tab, wouldn't that keep it hidden then?
Good idea, but the caption is always re-set, even if it does not change. So this won't work.

admin
Site Admin
Posts: 67258
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Options to remove Windows Close & Maximise buttons.

Post by admin »

Burningfeetman wrote:With XYplorer being such a powerful file browser tool, it could be configured to assist applications that have inbuilt browsers that are feature limited/useless, which in saying, could open up a whole new market to XYplorer once frustrated users realise its potential for this purpose.
I'm actually not sure what kind of applications you are talking about. Got an example and/or a screenshot?
Burningfeetman wrote:If from a developer point of view, you're concerned that users might not know that they're using XYplorer as this titlebar is hidden, perhaps a trade off for those of us who hide it (toggle it off via the .ini) , get a 1 second splash screen with the XYplorer icon & version info?
I'm indeed a bit concerned about this, and the splash is no good solution for me. But let's first see your reply to question #1...

binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Options to remove Windows Close & Maximise buttons.

Post by binocular222 »

admin wrote:I'm actually not sure what kind of applications you are talking about. Got an example and/or a screenshot?
Example 1: See how dumb File Open dialog is? I can make XY window become child window and replace File Open dialog completely.
Example 2: I am editing some HTML code, now I want to browse-with-preview all the related resources (image/audio...). I need to jam the path of currently-edited HTML file to XYplorer, turn preview panel on, turn off titlebar, tree, all other visual clutter, set XY window ontop => a real time resource browser is really nice
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

admin
Site Admin
Posts: 67258
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Options to remove Windows Close & Maximise buttons.

Post by admin »

binocular222 wrote:
admin wrote:I'm actually not sure what kind of applications you are talking about. Got an example and/or a screenshot?
Example 1: See how dumb File Open dialog is? I can make XY window become child window and replace File Open dialog completely.
You can, really? Got a screenshot?

Post Reply