difference between HorizontalAlignment and HorzFormatting ?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

foruok
Just popping in
Just popping in
Posts: 9
Joined: Fri Mar 14, 2008 01:11

difference between HorizontalAlignment and HorzFormatting ?

Postby foruok » Wed May 07, 2008 06:55

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!

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Wed May 07, 2008 08:12

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.
Check out my released snake game using Cegui!

foruok
Just popping in
Just popping in
Posts: 9
Joined: Fri Mar 14, 2008 01:11

thanks, i got it

Postby foruok » Thu May 08, 2008 02:10

Thanks scriptkid, I got it.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 26 guests