Page 1 of 2
Options to remove Windows Close & Maximise buttons.
Posted: 20 Jan 2014 03:18
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;
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
Re: Options to remove Windows Close & Maximise buttons.
Posted: 20 Jan 2014 09:36
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).
Re: Options to remove Windows Close & Maximise buttons.
Posted: 20 Jan 2014 09:57
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)
Re: Options to remove Windows Close & Maximise buttons.
Posted: 20 Jan 2014 10:15
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.

Re: Options to remove Windows Close & Maximise buttons.
Posted: 20 Jan 2014 10:21
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
Re: Options to remove Windows Close & Maximise buttons.
Posted: 20 Jan 2014 11:31
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.
Re: Options to remove Windows Close & Maximise buttons.
Posted: 21 Jan 2014 21:58
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.
Re: Options to remove Windows Close & Maximise buttons.
Posted: 21 Jan 2014 23:02
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!

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.
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
Re: Options to remove Windows Close & Maximise buttons.
Posted: 21 Jan 2014 23:31
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)...
Re: Options to remove Windows Close & Maximise buttons.
Posted: 22 Jan 2014 01:26
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?
Re: Options to remove Windows Close & Maximise buttons.
Posted: 22 Jan 2014 02:37
by binocular222
SetTimer works, but whenever change tab, XY window flash, too annoying to me.
I tried to fix titlebartemplate, but no use
Re: Options to remove Windows Close & Maximise buttons.
Posted: 22 Jan 2014 08:38
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.
Re: Options to remove Windows Close & Maximise buttons.
Posted: 22 Jan 2014 08:40
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...
Re: Options to remove Windows Close & Maximise buttons.
Posted: 22 Jan 2014 10:11
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
Re: Options to remove Windows Close & Maximise buttons.
Posted: 22 Jan 2014 16:01
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?