<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/GuiGridListGetSelectionMode?action=history&amp;feed=atom</id>
	<title>GuiGridListGetSelectionMode - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/GuiGridListGetSelectionMode?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListGetSelectionMode&amp;action=history"/>
	<updated>2026-05-10T01:27:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListGetSelectionMode&amp;diff=63109&amp;oldid=prev</id>
		<title>Qaisjp: add ver</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListGetSelectionMode&amp;diff=63109&amp;oldid=prev"/>
		<updated>2019-06-27T15:53:35Z</updated>

		<summary type="html">&lt;p&gt;add ver&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:53, 27 June 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;__NOTOC__  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;__NOTOC__  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Client function}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Client function}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This function retrieves the current selection mode of a gui gridlist.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{New feature/item|3.0157|1.5.6|16204|&lt;/ins&gt;This function retrieves the current selection mode of a gui gridlist.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Syntax==  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Syntax==  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-62991:rev-63109 --&gt;
&lt;/table&gt;</summary>
		<author><name>Qaisjp</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListGetSelectionMode&amp;diff=62991&amp;oldid=prev</id>
		<title>Danilo: Created page with &quot;__NOTOC__  {{Client function}} This function retrieves the current selection mode of a gui gridlist.  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; int guiGridListGetSelectionMode...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListGetSelectionMode&amp;diff=62991&amp;oldid=prev"/>
		<updated>2019-06-13T19:01:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{Client function}} This function retrieves the current selection mode of a gui gridlist.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; int guiGridListGetSelectionMode...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function retrieves the current selection mode of a gui gridlist.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int guiGridListGetSelectionMode ( gui-Element gridlist )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/GUI/Gridlist|GuiGridList]]:getSelectionMode|selectionMode}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''gridlist:''' The gridlist you want to get the selection mode of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the ID of the current gridlist's selection mode.&lt;br /&gt;
{{GUI_gridList_selection_modes_IDs}}&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a grid list and adds the command 'getmode' which will show the gridlist selection mode.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function clientsideResourceStart ()&lt;br /&gt;
    --Create a gridlist&lt;br /&gt;
    myGridList = guiCreateGridList ( 0.35, 0.35, 0.4, 0.1, true ) &lt;br /&gt;
    --Create a column for myGridList to add rows into&lt;br /&gt;
	columnA = guiGridListAddColumn ( myGridList, &amp;quot;columnA Title&amp;quot;, 0.3 )&lt;br /&gt;
	columnB = guiGridListAddColumn ( myGridList, &amp;quot;columnA Title&amp;quot;, 0.3 )&lt;br /&gt;
	columnC = guiGridListAddColumn ( myGridList, &amp;quot;columnA Title&amp;quot;, 0.3 ) &lt;br /&gt;
	--Create a row for columnA&lt;br /&gt;
	rowA = guiGridListAddRow ( myGridList )&lt;br /&gt;
	rowB = guiGridListAddRow ( myGridList )&lt;br /&gt;
	rowC = guiGridListAddRow ( myGridList )&lt;br /&gt;
        --Set the text of columnA, rowA to &amp;quot;Hello World!&amp;quot;&lt;br /&gt;
	guiGridListSetItemText ( myGridList, rowA, columnA, &amp;quot;rowA ColumnA&amp;quot;, false, false )&lt;br /&gt;
	guiGridListSetItemText ( myGridList, rowB, columnA, &amp;quot;rowB ColumnA&amp;quot;, false, false )&lt;br /&gt;
	guiGridListSetItemText ( myGridList, rowC, columnA, &amp;quot;rowC ColumnA&amp;quot;, false, false )&lt;br /&gt;
	guiGridListSetItemText ( myGridList, rowA, columnB, &amp;quot;rowA ColumnB&amp;quot;, false, false )&lt;br /&gt;
	guiGridListSetItemText ( myGridList, rowB, columnB, &amp;quot;rowB ColumnB&amp;quot;, false, false )&lt;br /&gt;
	guiGridListSetItemText ( myGridList, rowC, columnB, &amp;quot;rowC ColumnB&amp;quot;, false, false )&lt;br /&gt;
	guiGridListSetItemText ( myGridList, rowA, columnC, &amp;quot;rowA ColumnC&amp;quot;, false, false )&lt;br /&gt;
	guiGridListSetItemText ( myGridList, rowB, columnC, &amp;quot;rowB ColumnC&amp;quot;, false, false )&lt;br /&gt;
	guiGridListSetItemText ( myGridList, rowC, columnC, &amp;quot;rowC ColumnC&amp;quot;, false, false )&lt;br /&gt;
	showCursor ( true )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, resourceRoot, clientsideResourceStart )  &lt;br /&gt;
&lt;br /&gt;
-- adds the command 'getmode' which will call the function 'getSelectionMode' when typed&lt;br /&gt;
function getSelectionMode ( commandName )&lt;br /&gt;
&lt;br /&gt;
    local mode = guiGridListGetSelectionMode( myGridList ) -- get the selection mode from 'myGridList'&lt;br /&gt;
    outputChatBox ( &amp;quot;The current gridlist selection mode is &amp;quot;..tostring(mode), 230, 230, 230 ) -- shows in the chatbox the selection mode&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;getmode&amp;quot;, getSelectionMode )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;br /&gt;
{{GUI_events}}&lt;/div&gt;</summary>
		<author><name>Danilo</name></author>
	</entry>
</feed>