Location of the close, minimize and maximize buttons.

Right now this is my Window Decor (I assume this is where you change it)

[code]DestroyDecor MyDecor
AddToDecor MyDecor

  • TitleStyle LeftJustified Height 18
  • ButtonStyle 1 ActiveUp Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 – Flat
  • ButtonStyle 1 ActiveDown Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 – Flat
  • ButtonStyle 1 Inactive Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 – Flat
  • ButtonStyle 3 ActiveUp Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 – Flat
  • ButtonStyle 3 ActiveDown Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 – Flat
  • ButtonStyle 3 Inactive Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 – Flat
  • ButtonStyle 5 ActiveUp Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 – Flat
  • ButtonStyle 5 ActiveDown Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 – Flat
  • ButtonStyle 5 Inactive Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 – Flat
  • TitleStyle – Flat
  • BorderStyle Simple – NoInset Flat
  • ButtonStyle All – UseTitleStyle

[/code]

As it is, the close, minimize and maximize buttons are on the left side of the titlebar of my applications. I would like to change them to the right side. Can someone tell me how to do this? Thanks in advance for your help.

First off, the buttons on the titlebar are made like this:
1357 Title 8642
So the paired numbers are on the right, and pairless numbers to the left.
What defines what happends on which button is defined with the lines like:

# Key ButtonNumber Context Modifier Function
Mouse 2 T A Close

Which means "Titlebar-button number 2 (the rightmost) should close the window (with "A"ny modifier). So,

Mouse 5 T M Popup Window-operations

Would popup a window-operations -menu when alt-clicked on the 3rd button from left.
After that, you can define the looks of each button. So in your case, you would just swap the buttonstyles to paired numbered buttons.

You missed some :wink:

It’s actually 1 3 5 7 9 Title 0 8 6 4 2, for an image of the available areas see here.

hello,
here is what i have for mine - i think it is silly to put the close window button right next to maximize, so i have it on the ither side

here is what i have in my bindings:

#####################################################################
# Buttons left to right are numbered as in the ascii art below.
#    -----------------------
#    | 1 3 5 7 9 0 8 6 4 2 |
#    |                     |
#    |                     |
#    |                     |
#    |                     |
#    |                     |
#    |                     |
#    -----------------------
#
#   for the title bar buttons:
#Buttons for menu bar - pbh
Mouse 0 1 A Menu Window-Ops
Mouse 0 3 A Close
Mouse 0 2 A Maximize 100 100
Mouse 0 4 A WindowShade toggle
Mouse 0 6 A Iconify