GuiLabelSetVerticalAlign: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Example)
m (Added OOP Method + Variable Information)
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
bool guiLabelSetVerticalAlign ( element theLabel, string align )
bool guiLabelSetVerticalAlign ( element theLabel, string align )
</syntaxhighlight>  
</syntaxhighlight>  
 
{{OOP||[[Element/GUI/Text label|GuiLabel]]:setVerticalAlign|verticalAlign}}
===Required Arguments===  
===Required Arguments===  
*'''theLabel:''' The text label to set the vertical alignment on.
*'''theLabel:''' The text label to set the vertical alignment on.
Line 23: Line 23:
==See Also==
==See Also==
{{GUI functions}}
{{GUI functions}}
{{GUI_events}}

Latest revision as of 11:48, 7 August 2019

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