guiGridListGetColumnWidth | Multi Theft Auto: Wiki Skip to content

guiGridListGetColumnWidth

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


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

OOP Syntax Help! I don't understand this!

Syntax

float guiGridListGetColumnWidth ( element gridList, int columnIndex, bool relative )
Required Arguments
  • gridList: The grid list you want to add a column to
  • columnIndex: Column ID of the Get size
  • relative: A boolean defining whether width measurements will be relative to the Gridlist size, or absolute pixels.

Returns

  • float: value

Returns the width of the gridlist column, false if bad arguments were given.

Code Examples

shared
grid = guiCreateGridList(313, 354, 162, 100, false)
c = guiGridListAddColumn(grid, "test",0.5)
addCommandHandler("With",function()
With = guiGridListGetColumnWidth(grid ,c, true)
outputChatBox("Column Width = "..With)
end
)

See Also

GUI Functions