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

Ask for help and post your question on how to use XnView Classic.

Moderators: XnTriq, xnview

Post Reply
Tiffany
Posts: 11
Joined: Wed Jun 12, 2013 8:24 am

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

Post by Tiffany » Sat Nov 30, 2013 4:34 am

Image

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

User avatar
XnTriq
Moderator & Librarian
Posts: 5369
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

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

Post by XnTriq » Sat Nov 30, 2013 8:45 am

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

Tiffany
Posts: 11
Joined: Wed Jun 12, 2013 8:24 am

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

Post by Tiffany » Sat Nov 30, 2013 9:54 am

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.

User avatar
XnTriq
Moderator & Librarian
Posts: 5369
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

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

Post by XnTriq » Sat Nov 30, 2013 11:30 am

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

Post Reply