Vista Style Builder

   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: IMAGE SIZEMARGINS  (Read 5772 times)
Yaron
Beginner
*
Posts: 50


View Profile
« 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. 
Logged
3am
Beta Tester
Dedicated Helper
*
Posts: 2428



View Profile
« Reply #1 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
« Last Edit: June 03, 2021, 11:16:52 pm by 3am » Logged
Yaron
Beginner
*
Posts: 50


View Profile
« Reply #2 on: June 04, 2021, 10:34:12 am »

Thank you for the explanation. I appreciate it.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!