GuiLabelSetHorizontalAlign

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This function sets the horizontal alignment of a text label.

Syntax

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

OOP Syntax Help! I don't understand this!

Method: GuiLabel:setHorizontalAlign(...)
Variable: .horizontalAlign


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

Click to collapse [-]
Example 1
local label = guiCreateLabel(300,200,500,50,"Text",false)
guiLabelSetHorizontalAlign(label,"center")

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

Input

GUI