Vista Style Builder

   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Margins  (Read 8579 times)
iffy525
Beginner
*
Posts: 73


View Profile
« on: November 16, 2008, 01:45:01 am »

Could someone explain to me what the content, caption, sizing and none margins are?  Like what are there differences and what do they do?  Basically a sort of mini-guide to margins.  It would be a good thing to add to the wiki too.

Thanks :D
Logged
sweatyfish
Beginner
*
Posts: 82


View Profile
« Reply #1 on: November 16, 2008, 04:22:26 am »

http://http://ukintel.deviantart.com/art/Vista-Image-Content-Margins-85806506
Logged
AndreasV
Administrator
Dedicated Themer
*****
Posts: 158


View Profile
« Reply #2 on: November 16, 2008, 04:27:44 am »

MARGINS are a quadtuple of left, top, right, bottom. They define an inner portion of a rectangle;
the left-margin says how many pixels counted from the left border you go into the rectangle, the right-margin says how many pixels counted from the right border you go into the rectangle, etc:

Illustrates pretty ok what margins are.

Sizing margins define how an image is stretched using nine-grid-drawing. For indepth info, see http://msdn.microsoft.com/en-us/library/bb189722.aspx .

Content margins define where the content is placed inside a control, regardless of stretching it (since we define how many pixels to go from a border using margins).

caption margins are the same as content margins, but for title/captionbars.

none-margins is a VSB thing to display the exact borders of an image by using (0,0,0,0) as a margin structure.
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!