"Floating" title bar buttons?

Wednesday, March 12, 2014 by KamikazeSpider | Discussion: Skinning

Is it possible to have title bar buttons in a skin such that they are drawn in "empty space" not occupied by the title bar?

Example in the linked picture. I'm asking because when I try to position the buttons "above" the title bar (-5 pixels from the top edge,) they get clipped.

Uvah
Reply #1 Wednesday, March 12, 2014 1:20 AM

They get clipped because they're outside the margins of the window. What app are you working on?

KamikazeSpider
Reply #2 Wednesday, March 12, 2014 1:44 AM

Well, I'm working in SkinStudio, on a WindowBlinds skin. (I really hope I'm posting in the right place.) Can the "margins" of the window be explicitly set? For example, when making the image for the Caption border, do I have to add a few rows of transparent pixels as "padding" so the titlebar buttons can be drawn without being clipped?

DaveRI
Reply #3 Wednesday, March 12, 2014 2:55 AM

KamikazeSpider
For example, when making the image for the Caption border, do I have to add a few rows of transparent pixels as "padding" so the titlebar buttons can be drawn without being clipped?

That's the way it was done on Theater of the Mind:

https://www.wincustomize.com/explore/windowblinds/7493/

 

Add the amount of the transparent space to the painting margins for the titlebar.

doortech1
Reply #4 Wednesday, March 12, 2014 4:14 AM

Or, add that amount of blank space to the TOP of your image, both pieces of the top frame, so they match, space and image!

 

So, if your buttons are twenty pixels, add twenty to the top of the frame Top section, recut leaving blank area at top of each frame.

 

 

Hope  you get it.

gmc2
Reply #5 Thursday, March 13, 2014 6:50 AM

KamikazeSpider
do I have to add a few rows of transparent pixels as "padding" so the titlebar buttons can be drawn without being clipped?

yes

 

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01