GuiLabelSetVerticalAlign

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 vertical alignment of a text label.

Syntax

bool guiLabelSetVerticalAlign ( element theLabel, string align )

OOP Syntax Help! I don't understand this!

Method: GuiLabel:setVerticalAlign(...)
Variable: .verticalAlign


Required Arguments

  • theLabel: The text label to set the vertical alignment on.
  • align: The alignment type. Valid type strings are:
    • "top"
    • "center"
    • "bottom"

Returns

Returns true on success, false otherwise.

Example

Click to collapse [-]
Example 1
local label = guiCreateLabel(300,200,100,500,"Text",false)
guiLabelSetVerticalAlign(label,"bottom")

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