DColorButton
Description
Colorful buttons. Used internally by DColorPalette.
Parent
Derives methods, etc not listed on this page from DLabel.
Implements
Implements or overrides the following hooks/methods. If you want to override these, you probably want to call the original function too.
Methods
boolean DColorButton:GetDrawBorder()
We advise against using this. It may be changed or removed in a future update.
An AccessorFunc that returns value set by DColorButton:SetDrawBorder. See that page for more info.
An AccessorFunc that returns the unique ID set by DColorButton:SetID.
Used internally by DColorPalette
boolean DColorButton:GetSelected()
We advise against using this. It may be changed or removed in a future update.
An AccessorFunc that is an alias of Panel:IsSelected.
Returns whether the DColorButton is currently being pressed (the user is holding it down).
DColorButton:SetDrawBorder( boolean draw )
We advise against using this. It may be changed or removed in a future update.
An AccessorFunc that does absolutely nothing at all. Default value is automatically set to true.
Example
Creates a DColorButton buton.
preview from the derma_controls
concmd - mouse is hovering over this button to display tooltip