<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DgsComboBoxGetBoxHeight?action=history&amp;feed=atom</id>
	<title>DgsComboBoxGetBoxHeight - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DgsComboBoxGetBoxHeight?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsComboBoxGetBoxHeight&amp;action=history"/>
	<updated>2026-05-19T03:40:57Z</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=DgsComboBoxGetBoxHeight&amp;diff=53879&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;{{Client function}} __NOTOC__ This function gets the height of the drop-down box of combo box.  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool dgsComboBoxGetBoxHeight( element...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsComboBoxGetBoxHeight&amp;diff=53879&amp;oldid=prev"/>
		<updated>2018-02-06T10:28:50Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Client function}} __NOTOC__ This function gets the height of the drop-down box of combo box.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dgsComboBoxGetBoxHeight( element...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets the height of the drop-down box of combo box.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dgsComboBoxGetBoxHeight( element comboBox, bool relative )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''comboBox:''' the combo box you want to get from.&lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative. If this is ''true'', then all x,y,width,height floats must be between 0 and 1, representing measures relative to the parent.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a float value if succeed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
dgsWindow = DGS:dgsCreateWindow(100,100,200,100,&amp;quot;ComboBox test area&amp;quot;,false) -- create the container window&lt;br /&gt;
local combobox = DGS:dgsCreateComboBox(20,30,150,20,&amp;quot;Checked ComboBox&amp;quot;,false,dgsWindow) -- note the parameter after header, it will create a ComboBox&lt;br /&gt;
for i=1,100 do&lt;br /&gt;
	DGS:dgsComboBoxAddItem(combobox,&amp;quot;Test&amp;quot;..i)&lt;br /&gt;
end&lt;br /&gt;
local height = DGS:dgsComboBoxGetHeight(combobox,false)&lt;br /&gt;
DGS:dgsComboBoxSetHeight(combobox,height+20,false)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>Thisdp</name></author>
	</entry>
</feed>