DNumSlider.SetMinMax

From GMod Wiki

Jump to: navigation, search
Function
Syntax DNumSlider:SetMinMax( Number Min, Number Max )
Description:
Sets both the minimum and maximum values.
Returns: nil
In Object: DNumSlider
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DNumSlider.SetMinMax]DNumSlider.SetMinMax [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets Min to 2 and Max to 10
Used onNewerClient.png
Code
local NumSlider = vgui.Create( "DNumSlider", Frame )
NumSlider:SetPos( 25, 100 )
NumSlider:SetWide( 150 )
NumSlider:SetMinMax( 2, 10 )
OutputA number slider with a minimum number of 2 and maximum number of 10.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox