GuiGridListGetColumnWidth: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(GuiGridListGetColumnWidth)
 
Line 29: Line 29:
==See Also==
==See Also==
{{GUI functions}}
{{GUI functions}}
{{GUI_events}}

Revision as of 14:08, 20 May 2018

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

Syntax

bool 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

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

Example

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

General functions

Browsers

Buttons

Checkboxes

Comboboxes

Edit Boxes

Gridlists

Memos

Progressbars

Radio Buttons

Scrollbars

Scrollpanes

Static Images

Tab Panels

Tabs

Text Labels

Windows

Input

GUI