DMultiChoice

From GMod Wiki

Jump to: navigation, search
Warning 64 severe.pngThis element is being renamed to DComboBox once the GMod Beta 13 update becomes public


Derma Control: DMultiChoice
Parent Class:Panel
Subclasses:None
Description:
A drop-down list with multiple options.

Examples

DescriptionCreates a DMultiChoice
Used onNewerClient.png
Code
local DermaPanel = vgui.Create( "DFrame" )
DermaPanel:SetSize( 110,133 )
DermaPanel:Center()
DermaPanel:SetTitle( "Panel Test" )
 
	local List= vgui.Create( "DMultiChoice", DermaPanel)
	List:SetPos(5,28)
	List:SetSize( 100, 20 )
	List:AddChoice("Option 1")
	List:AddChoice("Option 2")
	List:AddChoice("Option 3")
OutputDMultiChoice.PNG


Methods

NewerClient.png DMultiChoice.AddChoice
NewerClient.png DMultiChoice.ChooseOption
NewerClient.png DMultiChoice.ChooseOptionID
NewerClient.png DMultiChoice.Clear
NewerClient.png DMultiChoice.GenerateExample
NewerClient.png DMultiChoice.GetOptionText
NewerClient.png DMultiChoice.Init
NewerClient.png DMultiChoice.OnMousePressed
NewerClient.png DMultiChoice.OnSelect
NewerClient.png DMultiChoice.OpenMenu
NewerClient.png DMultiChoice.PaintOver
NewerClient.png DMultiChoice.PerformLayout
NewerClient.png DMultiChoice.SetConVar
NewerClient.png DMultiChoice.SetEditable
NewerClient.png DMultiChoice.SetText

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox