DComboBox.GetMultiple

From GMod Wiki

Jump to: navigation, search
Function
Syntax DComboBox:GetMultiple( )
Description:
Returns whenever you not can select more than one option.
Returns: Boolean
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DComboBox.GetMultiple]DComboBox.GetMultiple [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionDisallows you to select multiple inputs.
Used onNewerClient.png
Code
 
local ComboBox = vgui.Create( "DComboBox")
ComboBox:SetPos( 10, 35 )
ComboBox:SetSize( 100, 185 )
ComboBox:SetMultiple( false ) -- You can only select one choice
ComboBox:AddItem( "Example Option 1" )
ComboBox:AddItem( "Example Option 2" )
ComboBox:GetMultiple()-- will return false
 
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox