GuiSetEnabled: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: --place holder--)
 
No edit summary
Line 1: Line 1:
--place holder--
{{Client function}}
__NOTOC__
This function enables/disables a GUI element. A disabled GUI element can't be used, gets a gray aspect and doesn't receive any events.
 
==Syntax==
<syntaxhighlight lang="lua">
bool guiSetEnabled ( element guiElement, bool enabled )
</syntaxhighlight>
 
===Required Arguments===
*'''guiElement:''' the GUI element you wish to enable or disable
*'''enabled:''' the new state
 
===Returns===
If the function succeeds it returns ''true'', if it fails it returns ''false''.
 
==Example==
 
==See Also==
{{GUI functions}}

Revision as of 04:33, 31 August 2008

This function enables/disables a GUI element. A disabled GUI element can't be used, gets a gray aspect and doesn't receive any events.

Syntax

bool guiSetEnabled ( element guiElement, bool enabled )

Required Arguments

  • guiElement: the GUI element you wish to enable or disable
  • enabled: the new state

Returns

If the function succeeds it returns true, if it fails it returns false.

Example

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