VistaStyleBuilder

Help => Windows Vista => Topic started by: mik2b on June 10, 2009, 04:56:35 pm



Title: Tool Window
Post by: mik2b on June 10, 2009, 04:56:35 pm
Hi,
I want to edit this small windows, but now I don't know how open one of this to test it.
Anyone knows a quick way to open a tool window?
Thanks.

P.D.: And, BTW, a method to view a help button in caption bar.


Title: Re: Tool Window
Post by: iffy525 on June 10, 2009, 11:45:11 pm
hm I've seen the small windows in Paint.net if you have that.

Also the help button is on the controls preview, right next to the close button.


Title: Re: Tool Window
Post by: mik2b on June 11, 2009, 12:08:26 pm
Thank you.
I haven't Paint.NET, but I'll install for thsi.


Title: Re: Tool Window
Post by: mik2b on June 12, 2009, 06:35:48 pm
I've a problem with this tool window.
(http://img3.imageshack.us/img3/7907/toolc.jpg)
As you see in the image, I painted with pink plain colour 2 pixels height for inner border.
But applied, I see a gradient in this pink colour. Why is this happening?


Title: Re: Tool Window
Post by: mik2b on June 16, 2009, 01:18:52 pm
I still trying it, but I don't understand why appears this gradient color.
Anyone knows?


Title: Re: Tool Window
Post by: sunbeam2000 on June 16, 2009, 01:44:22 pm
please try a complete different color (blue or black for this line) and look if it still appears.
i have an idea, but i'm not sure..


Title: Re: Tool Window
Post by: mik2b on June 16, 2009, 03:52:18 pm
Yes, is still happening with other colours, and only in top and bottom. I don't understand it.

__________
Now, I see that I have to create a thicker border (but I don't understant why): not with an only pixel, but with 3.
Margins was well adjusted, so I don't know where was the problem. But now it seems that with a 3 pixel border this gradient dissapeared.


Title: Re: Tool Window
Post by: Eoin on June 16, 2009, 06:26:54 pm
It's all to do with the first context margin value in the properties for the top graphic. That value states where the innerborder starts within the image. Tweaking that value should allow you to correct that gradient issue...

...I hope, do let us know if it works ;)


Title: Re: Tool Window
Post by: mik2b on June 16, 2009, 08:21:39 pm
Hi,
I've tried to change this value. See the next image:
(http://img34.imageshack.us/img34/5108/margins.jpg)
The default value is 7. But in my image there's 8 pixels, so the error should be this content margin. I changed it to 8, but the gradient still appearing (but different). And, Obviously, change it to 9 it spoil it more. -- Look at bottom frame too.
Seeing this, I'm sure that the correct value SHOULD be 8, but it doesn't appear correctly.

So, the solution that I saw is change this only pixel to a 3 pixel square. This is the method in bottom frame, and with default content margins it seems well rendered.

It's a really mistery...
Thanks for your help.


Title: Re: Tool Window
Post by: Eoin on June 16, 2009, 09:32:19 pm
Upload the PNG somewhere, I'll take a look for you.


Title: Re: Tool Window
Post by: mik2b on June 16, 2009, 09:49:30 pm
I've uploaded it here:
http://www.megaupload.com/?d=RLLXQ0QY

Thank you :)


Title: Re: Tool Window
Post by: Eoin on June 16, 2009, 10:26:50 pm
Probably was more than one solution to this but simplest seemed to be streching the image by 2 pixels and so making that black center pixel 3 wide. Then using sizing margins: '3, 3, 3, 3' and a content margin value of '8, 0, 0, 0' seemed to achieve what you were after. Possibly 9 as the content margin looks better, that bits up to you.

(http://zl.vc/vsb5F4D.tmp.png)


Title: Re: Tool Window
Post by: Panda X on June 16, 2009, 10:39:46 pm
Probably was more than one solution to this but simplest seemed to be streching the image by 2 pixels and so making that black center pixel 3 wide. Then using sizing margins: '3, 3, 3, 3' and a content margin value of '8, 0, 0, 0' seemed to achieve what you were after. Possibly 9 as the content margin looks better, that bits up to you.

(http://zl.vc/vsb5F4D.tmp.png)


Yeah that's probably the only way to fix it. DWM isn't fun to work with for that reason.


Title: Re: Tool Window
Post by: mik2b on June 17, 2009, 09:02:17 pm
I'll follow your steps.
Thank you :)