Decor for a single window

The decor for all windows has five buttons.

# Window Button Locations [1 Title 8 6 4 2]
Mouse 1 2 A Close
Mouse 1 4 A Maximize
Mouse 1 6 A Thumbnail # Iconify
Mouse 1 8 A TileW # Tiling
Mouse 1 1 A Menu MenuWindowOps

How do you keep the Close button and remove the other buttons, along with the title bar outdints?

File: simpleT.sys

Mouse 1 2 A Close

AddToDecor   SimpleDecor
+ TitleStyle Centered Height 18 -- Flat

# Draw a Square around buttons
#+ ButtonStyle All ActiveUp Vector 5 15x15@4 15x85@3 85x85@3 \
              85x15@3 15x15@3 -- Flat
+ ButtonStyle All Inactive Vector 5 47x47@3 57x53@3 53x53@3 \
              53x47@3 47x47@3 -- Flat

# Add the icon to button
+ AddButtonStyle 2 Active Vector 4 35x35@3 65x65@3 \
              65x35@4 35x65@3 # Close

+ ButtonStyle All - Clear

File: deskL.sys

Read $[CORE_DIR]/simpleT.sys

Style Todour* Colorset 37, HilightColorset 38, \
        BorderColorset 51, HilightBorderColorset 47, \
        BorderWidth 2, HandleWidth 4, UseDecor SimpleDecor

Not sure if possible for single window. It supposed to do because of Style foo UserDecor <name>. If not, create dummy buttons with title bar color Pixmap image.

Mouse bindings are for all windows, can’t change. Buttons are hidden as long as the cursor doesn’t cross them… check screenshot. For time being, it’s ok.

+ AddButtonStyle 1 \
        ActiveUp   (Pixmap $[IconSq]/active.png   -- flat) \
        Inactive   (Pixmap $[IconSq]/inactive.png   -- flat)
+ AddButtonStyle 2 \
        ActiveUp   (Pixmap $[IconSq]/close-active.png   -- flat) \
        Inactive   (Pixmap $[IconSq]/close-inactive.png   -- flat)
+ AddButtonStyle 4  \
        ActiveUp   (Pixmap $[IconSq]/active.png   -- flat) \
        Inactive   (Pixmap $[IconSq]/inactive.png   -- flat)
+ AddButtonStyle 6 \

Decors will show any button that has a binding by default. Look at the Button n and !Button n styles for how to show/hide individual buttons.

Something is missing; it only works for all windows, for example, hide Close button.
Style * !Button 2

If you don’t want the Style to apply to all windows, don’t use a * to match all windows, instead match only the windows you want to apply it to via class/resource/name/icon name.

Thanks. I thought it was for ButtonStyle.
Solution:
Style Todour* !Button 1, !Button 4, !Button 6, !Button 8