VistaStyleBuilder

Help => Windows 10 => Topic started by: Yaron on June 03, 2021, 07:52:16 pm



Title: IMAGE SIZEMARGINS
Post by: Yaron on June 03, 2021, 07:52:16 pm
Hello,

What are the IMAGE SIZEMARGINS and CONTENTMARGINS values?

I suppose that Windows calculate the image's height, divide it by IMAGECOUNT and takes into account SIZEMARGINS as well.

If we take the image in "Toolbars, Headers, & Rebar > Toolbars & Headers > Header > HeaderItem" as an example -

I changed "14" (in SIZEMARGINS) to "6" and apparently there was no difference.
When I changed "14" to "24", there WAS a difference.

I also tried a different height (300 instead of 288, each image 25px instead of 24px), did NOT change SIZEMARGINS and got a good result.

Thank you. 


Title: Re: IMAGE SIZEMARGINS
Post by: 3am on June 03, 2021, 10:28:26 pm
1) IMAGECOUNT is how many images there are

The IMAGECOUNT for Toolbars, Headers, & Rebar > Toolbars & Headers > Header > HeaderItem is 12 because there is a separate image for each of the 12 states:

2) The MARGINS property has the values (Left, Right, Top, Bottom)

SIZINGMARGINS are used to determine how far you want an image to stretch. If you have (0, 0, 10, 0) your image can stretch everywhere except 10 pixels from the top

CONTENTMARGINS determine how much space is around an image. (0, 0, 0, 10) will move an image 10 pixels up so it will have a 10 pixel space at the bottom


Title: Re: IMAGE SIZEMARGINS
Post by: Yaron on June 04, 2021, 10:34:12 am
Thank you for the explanation. I appreciate it.