derma.DefineControl
Example
Defines a new control based off of DTextEntry that prints to the console whenever it is changed
local PANEL = {}
function PANEL:OnChange()
print(self:GetValue())
end
derma.DefineControl("MyTextEntry", "Printing text entry control", PANEL, "DTextEntry")