GuiLabelSetHorizontalAlign: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{Client function}}
{{Client function}}
{{Needs_Example}}
__NOTOC__
__NOTOC__
This function sets the horizontal alignment of a text label.
This function sets the horizontal alignment of a text label.
Line 20: Line 21:


==Example==  
==Example==  
 
<syntaxhighlight lang="lua">TODO</syntaxhighlight>
==See Also==
==See Also==
{{GUI functions}}
{{GUI functions}}

Revision as of 05:32, 5 May 2015

Accessories-text-editor.png Script Example Missing Function GuiLabelSetHorizontalAlign needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


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: Whether or not to enable wordwrap for the gui-label.

Returns

Returns true on success, false otherwise.

Example

TODO

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