GuiLabelSetHorizontalAlign: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
number guiLabelSetHorizontalAlign ( element theLabel, int align )
number guiLabelSetHorizontalAlign ( element theLabel, string align, bool wordwrap )
</syntaxhighlight>  
</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''theLabel:''' The text label to set the horizontal alignment on.
*'''theLabel:''' The text label to set the horizontal alignment on.
*'''align:''' The alignment type. Valid types are:
*'''align:''' The alignment type. Valid type strings are:
**CGUI_ALIGN_LEFT = 0,
**"left"
**CGUI_ALIGN_RIGHT = 1,
**"center"
**CGUI_ALIGN_HORIZONTALCENTER = 2,
**"right"
**CGUI_ALIGN_LEFT_WORDWRAP = 4,
*'''wordwrap:''' Wordwrap...
**CGUI_ALIGN_RIGHT_WORDWRAP = 5,
**CGUI_ALIGN_HORIZONTALCENTER_WORDWRAP = 6


===Returns===
===Returns===

Revision as of 18:19, 5 November 2007

This function sets the horizontal alignment of a text label.

Syntax

number guiLabelSetHorizontalAlign ( element theLabel, string align, bool wordwrap )

Required Arguments

  • theLabel: The text label to set the horizontal alignment on.
  • align: The alignment type. Valid type strings are:
    • "left"
    • "center"
    • "right"
  • wordwrap: Wordwrap...

Returns

Returns true on success, false otherwise.

Example

See Also

General functions

Browsers

Buttons

Checkboxes

Comboboxes

Edit Boxes

Gridlists

Memos

Progressbars

Radio Buttons

Scrollbars

Scrollpanes

Static Images

Tab Panels

Tabs

Text Labels

Windows