Difference between revisions of "LavishGUI:text (Element Type)"

From Lavish Software Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
 
=== What is a Text element? ===
 
=== What is a Text element? ===
 
+
A text element is an element just used for displaying text.
 
== Using Text elements ==
 
== Using Text elements ==
 
Text elements are descendants of the [[LavishGUI:Elements|base]] element type.  Any attributes of the [[LavishGUI:Elements|base]] element type may be applied in addition to the text element-specific properties described below.
 
Text elements are descendants of the [[LavishGUI:Elements|base]] element type.  Any attributes of the [[LavishGUI:Elements|base]] element type may be applied in addition to the text element-specific properties described below.
  
 
=== Text element-Specific Properties ===
 
=== Text element-Specific Properties ===
 
+
*'''Alignment'''
 +
: Horizontal alignment. Can be "Left", "Center" or "Right" Left
 +
*'''Font'''
 +
: Font reference (Name, Size, Height)
 +
*'''Text'''
 +
: Text (can include data sequences) (${Me.X}, ${Me.Y}, ${Me.Z})
 +
*'''VerticalAlignment'''
 +
: Vertical alignment. Can be "Top", "Center" or "Bottom" Top
 +
*'''Wrap'''
 +
: Multi-line text wrap?
 
== Examples ==
 
== Examples ==
 
+
<Text name='TestText'>
 +
<X>120</X>
 +
<Y>10</Y>
 +
<Width>100</Width>
 +
<Height>20</Height>
 +
<Alignment>Right</Alignment>
 +
<Text>${Me.Name}</Text>
 +
</Text>
 
== See Also ==
 
== See Also ==
 
* [[LavishGUI]]
 
* [[LavishGUI]]
 
* [[LavishGUI:Elements|Elements]]
 
* [[LavishGUI:Elements|Elements]]
 
[[Category:LavishGUI]]
 
[[Category:LavishGUI]]

Revision as of 01:19, 21 September 2005

Introduction

What is a Text element?

A text element is an element just used for displaying text.

Using Text elements

Text elements are descendants of the base element type. Any attributes of the base element type may be applied in addition to the text element-specific properties described below.

Text element-Specific Properties

  • Alignment
Horizontal alignment. Can be "Left", "Center" or "Right" Left
  • Font
Font reference (Name, Size, Height)
  • Text
Text (can include data sequences) (${Me.X}, ${Me.Y}, ${Me.Z})
  • VerticalAlignment
Vertical alignment. Can be "Top", "Center" or "Bottom" Top
  • Wrap
Multi-line text wrap?

Examples

	<Text name='TestText'> 
				<X>120</X> 
				<Y>10</Y> 
				<Width>100</Width> 
				<Height>20</Height> 
				<Alignment>Right</Alignment>
				<Text>${Me.Name}</Text>
	</Text>

See Also