GuiLabelSetVerticalAlign

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

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