GuiGridListClear

From Multi Theft Auto: Wiki
Revision as of 19:59, 30 July 2007 by Lil Toady (talk | contribs)
Jump to navigation Jump to search

This function clears out all the data from a GUI grid list element

Syntax

bool guiGridListClear ( element gridList )

Required Arguments

  • gridList: The grid list element to be cleared

Returns

Returns true if the grid list element is valid and it has been cleared successfully, false otherwise.

Example

This example creates a grid list, puts a "Hello world" text in and clears it in 5 seconds

function test ()
	--Create the grid list element
	local testList = guiCreateGridList ( 0.45, 0.45, 0.10, 0.10, true )
	--Create a column in the list and add a row with "Hello world" text
	local column = guiGridListAddColumn( testList, "test", 0.85 )
	guiGridListSetItemText ( testList, guiGridListAddRow ( testList ), column, "Hello World", false, false )
	--Set a timer to clear the grid list in 5 seconds
	setTimer ( guiGridListClear, 5000, 1, testList )
end

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