GuiLabelSetVerticalAlign: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Example)
Line 19: Line 19:


==Example==  
==Example==  
 
<section name="Example 1" class="client" show="true"><syntaxhighlight lang="lua">local label = guiCreateLabel(300,200,100,500,"Text",false)
guiLabelSetVerticalAlign(label,"bottom")</syntaxhighlight></section>
==See Also==
==See Also==
{{GUI functions}}
{{GUI functions}}

Revision as of 09:45, 2 July 2016

This function sets the vertical alignment of a text label.

Syntax

bool guiLabelSetVerticalAlign ( element theLabel, string align )

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