GuiBringToFront: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(OOP syntax)
Line 9: Line 9:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool guiBringToFront ( element guiElement )
bool guiBringToFront ( element guiElement )
</syntaxhighlight>  
</syntaxhighlight>
{{OOP||[[GUI widgets|GuiElement]]:bringToFront||guiMoveToBack}}


===Required Arguments===  
===Required Arguments===  

Revision as of 15:35, 7 November 2018

This function brings a GUI element on top of others.

[[{{{image}}}|link=|]] Note: If property "AlwaysOnTop" sets to "True", this function will return false .


Syntax

bool guiBringToFront ( element guiElement )

OOP Syntax Help! I don't understand this!

Method: GuiElement:bringToFront(...)
Counterpart: guiMoveToBack


Required Arguments

  • guiElement: the GUI element that you want to move to the front.

Returns

Returns true if the function was successful, false otherwise.

Example

This example creates a gui window and brings it on top.

local window = guiCreateWindow ( 0.4, 0.4, 0.3, 0.3, "My dummy window", true )
guiBringToFront ( window )

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