Close button (single) positioning overide

Monday, June 8, 2009 by Halluci | Discussion: SkinStudio


I'm running into a bit of trouble in skinstudio getting the close button (single) to align the way I want. It seems that skinstudio (v6.4) places the lone close button (that is, for popup windows which only have a close button and no min or max buttons) based on the alignment values for the normal close button. Normally this would be fine, but for the skin I am currently working on, I have cut out holes in an otherwise solid titlebar for each of the min/max/close buttons (then when I put in semi-transparent images for the buttons, you can see the background through the buttons). However, for windows with only the close button, I would like to cover up the two unused holes (where min and max usually would go); the way I would like to do this is just make the close button (single) image extra wide with non-transparent parts drawn over where the other two hole would normally be. However, this means that I have to align the entire close button (with the added in solid parts) farther away from the right edge, but the values I set under the close button (single) window aren't taking effect; it's still using the ones from the normal close button.

Any help or suggestions on possible workarounds would be much appreciated. I've tried making the normal close button extra wide too with transparent parts on the left, but that doesnt work since the close button just covers up the clickable area for the min and max buttons. Any other suggestions?

Reply #1 Monday, June 8, 2009 11:05 PM

Here's a screenshot of what I'm talking about. The top is a picture of the buttons for normal windows, the dark part of each circle is semi-transparent. The middle is what happens with windows that only have the close button (you can see the holes I cut out of the titlebar for the min and max buttons). The third is what I would like windows with only one close button to look like.



Also, whatever happened to being able to animate the titlebar buttons (and all the other infinitely useful properties that the titlebar buttons had back in the old skinstudio? I know the new skinstudio is slicker to look at and less cluttered, but I miss being able to fine tune exactly when and where I want which button to show up)

Reply #2 Tuesday, June 9, 2009 8:03 AM

The only way to do what you are trying to do is to fake the cutout behind the button. I spent a lifetime trying to do the exact thing you are trying when I made my Schism skin.

What I mean by fake is add the background of the button to the button itself.

eeew, now you made me go back and look at my old work......

Also, depending on whether your background is light or dark would make a big difference as to how the buttons looked if it could be pulled off.  I think you would be dissapointed in the final result.

Wish I had better news for you.

Reply #3 Tuesday, June 9, 2009 9:54 AM

I was thinking....

Maybe you can add buttons that cover the the blanks left when the min/ max buttons aren't in use. It would require manually adding code for button action and when to show like sks5 could do. As long as you don't have any gradients in the top window frame the blanks you make will blend in to cover the holes in the window frame.

In the past when a window was rolled up you would see the corners of windows get screwy. Adding a button to cover the mess on rollup was the way around this.  Action would be- Do nothing and show when there is no max/min button.

I don't have SKS insstalled so I am not sure if it will work or not but it's worth trying.

Reply #4 Tuesday, June 9, 2009 3:04 PM

Thanks for the reply. I was thinking exactly the same thing: add in some functionless buttons that only show when max and min button are not present. Do you know what the code would look like to display when there is no max or min though? I remember there were all sorts of useful pulldown menus in the old SKS that would allow you to define these things, but not in the new SKS.

Reply #5 Tuesday, June 9, 2009 7:54 PM

I don't know the specific code but if you started a test skin in sks5 and added the buttons with the correct settings you could then open that skin in notepad and copy the code and then transfer it to your skin. Make a copy of your skin for testing first of course. I really have no idea if the coding will work or not but I have had great success doing things just like this in the past.

Reply #6 Wednesday, June 10, 2009 6:16 AM

Hmm, no luck. Apparently skins for vista do not support uis2 skinning which was what SKS 5 used for XP skins.

Reply #7 Monday, June 22, 2009 3:56 AM

me hav this prob......... Done many things to sort out tat,, but still didnt find solution for tat,,,,,,,,,,

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!