Page 1 of 1

difference between HorizontalAlignment and HorzFormatting ?

Posted: Wed May 07, 2008 06:55
by foruok
Hi, I notice that some controls(such as staticimage , statictext) has both HorizontalAlignment property and HorzFormatting property, what's the difference ? I'm puzzled---- :?: And also VerticalAlignment and VertFormatting.

Thanks!

Posted: Wed May 07, 2008 08:12
by scriptkid
Hi,

i can understand the confusion, don't worry :)

The Alignment properties manage widget positions and alignment in relation to other widgets to provide a very basic automatic layout mechanism.

The Formatting properties manages the position and alignment of a widget's content, such as text. If you are looking at laying out your text within a textbox for example, you need the Formatting properties.

HTH.

thanks, i got it

Posted: Thu May 08, 2008 02:10
by foruok
Thanks scriptkid, I got it.