GuiCheckBoxSetSelected: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:


===Required Arguments===  
===Required Arguments===  
*'''argumentName:''' description
*'''theCheckbox:''' The GUI element in which you wish to change the selection state of
 
*'''state:''' The state of the checkbox, where ''true'' indicates selected, and ''false'' indicates unselected.
===Optional Arguments===
{{OptionalArg}}
*'''argumentName2:''' description


===Returns===
===Returns===
Returns ''true'' if blah, ''false'' otherwise.
Returns ''true'' if the checkbox's selection state was successfully set, ''false'' otherwise.


==Example==
==Example==

Revision as of 16:59, 9 October 2007

This function selects (ticks) or unselects a checkbox.

Syntax

bool guiCheckBoxSetSelected ( element theCheckbox, bool state )

Required Arguments

  • theCheckbox: The GUI element in which you wish to change the selection state of
  • state: The state of the checkbox, where true indicates selected, and false indicates unselected.

Returns

Returns true if the checkbox's selection state was successfully set, false otherwise.

Example

This page lacks an example

--add an example here

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