GuiGridListSetColumnWidth: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool guiGridListSetColumnWidth ( element gridList, int columnIndex, number width, [bool relative = true] )
bool guiGridListSetColumnWidth ( element gridList, int columnIndex, number width, bool relative )
</syntaxhighlight>  
</syntaxhighlight>  


Line 12: Line 12:
*'''columnIndex:''' Column ID of the size you want to change
*'''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.
*'''width:''' A float or integer of the width of the column depending on the '''relative''' argument.
===Optional Arguments===
{{OptionalArg}}
*'''relative:''' A boolean defining whether '''width''' measurements will be relative to the Gridlist size, or absolute pixels.
*'''relative:''' A boolean defining whether '''width''' measurements will be relative to the Gridlist size, or absolute pixels.



Revision as of 01:36, 29 May 2011

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

Syntax

bool guiGridListSetColumnWidth ( element gridList, int columnIndex, number width, bool relative )

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.
  • 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