Difference between revisions of "GuiLabelSetHorizontalAlign"

From Multi Theft Auto: Wiki
Jump to: navigation, search
m (corrected return type)
m (Required Arguments)
Line 14: Line 14:
 
**"center"
 
**"center"
 
**"right"
 
**"right"
*'''wordwrap:''' Wordwrap...
+
*'''wordwrap:''' Wordwrap: http://en.wikipedia.org/wiki/Word_wrap for more information.
  
 
===Returns===
 
===Returns===

Revision as of 16:07, 28 April 2012

This function sets the horizontal alignment of a text label.

Syntax

bool guiLabelSetHorizontalAlign ( element theLabel, string align, [ bool wordwrap = false ] )

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: http://en.wikipedia.org/wiki/Word_wrap for more information.

Returns

Returns true on success, false otherwise.

Example

See Also

General functions

Browsers

Buttons

Checkboxes

Comboboxes

Edit Fields

Gridlists

Memos

Progressbars

Radio Buttons

Scrollbars

Scrollpanes

Static Images

Tab Panels

Tabs

Text Labels

Windows