DVerticalDivider

From GMod Wiki

Revision as of 15:20, 11 November 2011 by Guewen (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Derma Control: DVerticalDivider
Parent Class:DPanel
Subclasses:
Description:
A vertical divide.

Examples

DescriptionCreate a frame half the size of the screen.
Used onNewerClient.png
Code
 
local DermaPanel = vgui.Create( "DFrame" ) 
DermaPanel:SetPos( 50,50 ) 
DermaPanel:SetSize( 300, 278)
DermaPanel:SetTitle( "Testing Derma Stuff" ) 
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( true ) 
DermaPanel:ShowCloseButton( true ) 
DermaPanel:MakePopup()
 
local but1 = vgui.Create( "DButton" )
but1:SetText("Button Top")
local but2 = vgui.Create( "DButton" )
but2:SetText("Button Bottom")
 
local DVerticalDivider = vgui.Create( "DVerticalDivider", DermaPanel )
DVerticalDivider:SetSize( 250, 250 )
DVerticalDivider:SetPos(5,23)
DVerticalDivider:SetTop( but1 )
DVerticalDivider:SetBottom( but2 )
 
 
OutputDVerticalDivider.jpg


Methods

NewerClient.png DVerticalDivider.GenerateExample
NewerClient.png DVerticalDivider.GetBottom
NewerClient.png DVerticalDivider.GetBottomMin
NewerClient.png DVerticalDivider.GetDividerHeight
NewerClient.png DVerticalDivider.GetDragging
NewerClient.png DVerticalDivider.GetHoldPos
NewerClient.png DVerticalDivider.GetMiddle
NewerClient.png DVerticalDivider.GetTop
NewerClient.png DVerticalDivider.GetTopHeight
NewerClient.png DVerticalDivider.GetTopMin
NewerClient.png DVerticalDivider.Init
NewerClient.png DVerticalDivider.LoadCookies
NewerClient.png DVerticalDivider.OnCursorMoved
NewerClient.png DVerticalDivider.OnMouseReleased
NewerClient.png DVerticalDivider.PerformLayout
NewerClient.png DVerticalDivider.SetBottom
NewerClient.png DVerticalDivider.SetBottomMin
NewerClient.png DVerticalDivider.SetDividerHeight
NewerClient.png DVerticalDivider.SetDragging
NewerClient.png DVerticalDivider.SetHoldPos
NewerClient.png DVerticalDivider.SetMiddle
NewerClient.png DVerticalDivider.SetTop
NewerClient.png DVerticalDivider.SetTopHeight
NewerClient.png DVerticalDivider.SetTopMin
NewerClient.png DVerticalDivider.StartGrab

Inherited from DPanel

NewerClient.png DPanel.Paint
NewerClient.png DPanel.SetDisabled
NewerClient.png DPanel.GetPaintBackground
NewerClient.png DPanel.GetDisabled
NewerClient.png DPanel.SetPaintBackground
NewerClient.png DPanel.ApplySchemeSettings

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox