Difference between revisions of "GuiFocus"

From Multi Theft Auto: Wiki
Jump to: navigation, search
(Created page with "{{Client function}} __NOTOC__ This function focuses a defocused GUI element. Used primarily for edit fields and memos. ==Syntax== <syntaxhighlight lang="lua"> bool guiFocus...")
 
m
Line 1: Line 1:
 
{{Client function}}
 
{{Client function}}
 
__NOTOC__
 
__NOTOC__
This function focuses a defocused GUI element. Used primarily for edit fields and memos.
+
{{New feature/item|3.0157|1.5.6|16361|This function focuses a defocused GUI element. Used primarily for edit fields and memos.}}
  
 
==Syntax==  
 
==Syntax==  

Revision as of 17:28, 12 February 2019

FROM VERSION 1.5.6 r16361 ONWARDS
This function focuses a defocused GUI element. Used primarily for edit fields and memos.

Syntax

bool guiFocus ( element guiElement )

OOP Syntax Help! I don't understand this!

Method: GuiElement:focus(...)

Required Arguments

  • guiElement: the GUI element that you want to focus

Returns

Returns true if the function was successful, false otherwise.

Example

Accessories-text-editor.png Script Example Missing Function GuiFocus needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.
-- TODO


See Also

General functions

FROM VERSION 1.5.6 r16361 ONWARDS

Browsers

Buttons

Checkboxes

Comboboxes

Edit Boxes

Gridlists

FROM VERSION 1.5.6 r16204 ONWARDS

Memos

Progressbars

Radio Buttons

Scrollbars

Scrollpanes

Static Images

Tab Panels

Tabs

Text Labels

Windows

Input

GUI