VistaStyleBuilder

Help => Windows Vista => Topic started by: iffy525 on November 16, 2008, 01:45:01 am



Title: Margins
Post by: iffy525 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


Title: Re: Margins
Post by: sweatyfish on November 16, 2008, 04:22:26 am
http://http://ukintel.deviantart.com/art/Vista-Image-Content-Margins-85806506


Title: Re: Margins
Post by: AndreasV 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:
(http://http://www.html.net/tutorials/css/figure011.gif)
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 (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.