GuiLabelSetHorizontalAlign

From Multi Theft Auto: Wiki
Revision as of 15:31, 25 August 2007 by IJs (talk | contribs) (New page: {{Client function}} __NOTOC__ This function sets the horizontal alignment of a text label. ==Syntax== <syntaxhighlight lang="lua"> number guiLabelSetHorizontalAlign ( element theLabel, int align ) </co...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This function sets the horizontal alignment of a text label.

Syntax

number guiLabelSetHorizontalAlign ( element theLabel, int align )

Required Arguments

  • theLabel: The text label to set the horizontal alignment on.
  • align: The alignment type. Valid types are:
    • CGUI_ALIGN_LEFT = 0,
    • CGUI_ALIGN_RIGHT = 1,
    • CGUI_ALIGN_HORIZONTALCENTER = 2,
    • CGUI_ALIGN_LEFT_WORDWRAP = 4,
    • CGUI_ALIGN_RIGHT_WORDWRAP = 5,
    • CGUI_ALIGN_HORIZONTALCENTER_WORDWRAP = 6,


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