GuiGridListSetColumnWidth

From Multi Theft Auto: Wiki
Revision as of 05:31, 31 December 2008 by Talidan (talk | contribs) (New page: {{Client function}} __NOTOC__ This allows you to set the width of an existing column in a gridlist. ==Syntax== <syntaxhighlight lang="lua"> bool guiGridListRemoveColumn ( element gridList, int columnI...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This allows you to set the width of an existing column in a gridlist.

Syntax

bool guiGridListRemoveColumn ( element gridList, int columnIndex, number width, [bool relative = true] )

Required Arguments

  • gridList: The grid list you want to add a column to
  • columnIndex: Column ID of the size you want to change
  • width: A float or integer of the width of the column depending on the relative argument.

Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.

  • relative: A boolean defining whether width measurements will be relative to the Gridlist size, or absolute pixels.

Returns

Returns true if the gridlist column width was successfully set, false if bad arguments were given.

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