Garry's Mod Wiki

Revision Difference

DComboBox:ChooseOption#550081

<function name="ChooseOption" parent="DComboBox" type="panelfunc"> <ispanel>yes</ispanel> <description>Selects a combo box option by its index and changes the text displayed at the top of the combo box.</description> <realm>Client</realm>⤶ <realm>Client and Menu</realm>⤶ <file line="86-L101">lua/vgui/dcombobox.lua</file> <args> <arg name="value" type="string">The text to display at the top of the combo box.</arg> <arg name="index" type="number">The option index.</arg> </args> </function>