Difference between revisions of "GuiBlur"

From Multi Theft Auto: Wiki
(Example)
(Example)
 
Line 18: Line 18:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
local edit= guiCreateMemo ( 0.4, 0.4, 0.4, 0.08, "it's edit!", true )
 
local edit= guiCreateMemo ( 0.4, 0.4, 0.4, 0.08, "it's edit!", true )
guiFocus(edit)
+
guiBlur(edit)
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Latest revision as of 17:16, 7 July 2019

This function defocuses a focused GUI element. Used primarily for edit fields and memos.

Syntax

bool guiBlur ( element guiElement )

OOP Syntax Help! I don't understand this!

Method: GuiElement:blur(...)

Required Arguments

  • guiElement: the GUI element that you want to defocus

Returns

Returns true if the function was successful, false otherwise.

Example

local edit= guiCreateMemo ( 0.4, 0.4, 0.4, 0.08, "it's edit!", true )
guiBlur(edit)

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