DDragBase
Description
This is used internally - although you're able to use it you probably shouldn't.
A VGUI base panel providing drag/drop functionality. Used by DIconLayout, DListLayout and DTileLayout.
Parent
Derives methods, etc not listed on this page from DPanel.
Implements
Implements or overrides the following hooks/methods. If you want to override these, you probably want to call the original function too.
Events
DDragBase:OnModified()
Called when anything is dropped on or rearranged within the DDragBase. For Override
Methods
This is used internally - although you're able to use it you probably shouldn't.
Internal function used in DDragBase:MakeDroppable
This is used internally - although you're able to use it you probably shouldn't.
Internal function used in DDragBase:DropAction_Copy
This is used internally - although you're able to use it you probably shouldn't.
Internal function used in DDragBase:DropAction_Normal
Returns the drag'n'drop group this panel belongs to. See DDragBase:MakeDroppable. An AccessorFunc
boolean DDragBase:GetReadOnly()
Returns whether this panel is read only or not for drag'n'drop purposes. An AccessorFunc
boolean DDragBase:GetUseLiveDrag()
Whether this panel uses live drag'n'drop previews. An AccessorFunc
Makes the panel a receiver for any droppable panel with the same DnD name. Internally calls Panel:Receiver.
See Drag and Drop for VGUI.
This is used internally - although you're able to use it you probably shouldn't.
Used internally by DDragBase:MakeDroppable.
See also DDragBase:GetDnD
An AccessorFunc
DDragBase:SetDropPos( string pos = "5" )
Determines where you can drop stuff.
"4" for left
"5" for center
"6" for right
"8" for top
"2" for bottom
DDragBase:SetReadOnly( boolean name )
Sets whether this panel is read only or not for drag'n'drop purposes. If set to true, you can only copy from this panel, and cannot modify its contents. This is an AccessorFunc
DDragBase:SetUseLiveDrag( boolean newState )
Whether to use live drag'n'drop previews. This is an AccessorFunc
This is used internally - although you're able to use it you probably shouldn't.
Internal function used in DDragBase:DropAction_Normal