Page 1 of 1

Any option to remove border or extra -[]x buttons?

Posted: Sat Nov 30, 2013 4:34 am
by Tiffany
Image

Are there any options to remove either the window border or the extra -[]x buttons?

Re: Any option to remove border or extra -[]x buttons?

Posted: Sat Nov 30, 2013 8:45 am
by XnTriq
Hi Tiffany (-:

I don't think you can get rid of the title bar buttons of the child windows, because XnView is a multiple document interface (MDI) application.
However, you can hide the menubar altogether by adding MenuBar=1 to the [Hidden] section of your xnview.ini file.
XnView Wiki (UI-less Settings » [url=http://www.xnview.com/wiki/index.php/UI-less_Settings#Hidden]Hidden[/url]) wrote:MenuBar
  • When enabled, XnView hides the menu bar.
    Value: Boolean (1/0), disabled by default
FYI: There's a pending request for a chrome-less mode in XnViewMP: Windows interface inconsistencies

Re: Any option to remove border or extra -[]x buttons?

Posted: Sat Nov 30, 2013 9:54 am
by Tiffany
Thanks for the reply. I imagine if you just wanted to hide the border couldn't you just use this?:

Code: Select all

WinSet, Style, -0xC40000, A
It would look something like this:
Image

Tested it via an AHK script:

Code: Select all

#SingleInstance Force
#Persistent

SetTimer XnView, 5000
Return

XnView:
   WinGet IDs, List, ahk_class XmainClass
   Loop %IDs%
   {
      ID := IDs%A_Index%
      If ID not in %Old_IDs%
      {
         WinActivate ahk_id %ID%
         	WinSet, Style, -0xC40000, A
	WinActivate, A
      }
      New_IDs .= ID ","
   }
   StringTrimRight Old_IDs, New_IDs, 1
   New_IDs =
Return
Seems like that specific set of -[]x stuff only affects that specific picture though, like if you used tabs or something I guess.

Re: Any option to remove border or extra -[]x buttons?

Posted: Sat Nov 30, 2013 11:30 am
by XnTriq
Tiffany wrote:I imagine if you just wanted to hide the border couldn't you just use this?:

Code: Select all

WinSet, Style, -0xC40000, A
I see you know your stuff 8)
Tiffany wrote:Seems like that specific set of -[]x stuff only affects that specific picture though, like if you used tabs or something I guess.
On 2nd thought, this probably has to do with the two different fullscreen modes of XnView Classic:

[quote="Olivier_G (Re: Lack of "technical transparency")"]First, my point of view on Browser's fullscreen ("fullscreen lite") vs Viewer's fullscreen ("MDI fullscreen"): improve and use MDI as mainstream (keep "lite fullscreen" only for some 'dual monitor' configurations).[/quote] Related settings:
  • Tools » Options...
    • General » Operation » Startup » Mode when starting with a file
    • Interface » Interface » Tabs » Hide tab bar when only one window is opened
    • View » View » Only one window view opened