Derma Problem/Text postioning problem

**Objective: ** I’m trying to get some text to be printed on a panel
**Error: **I’m not getting any errors its just that I can’t position the text at all.
**Code: **
[lua]
function Menu()

local DermaPanel = vgui.Create( “DFrame” )
DermaPanel:SetPos( 50,50 )
DermaPanel:SetSize( 700, 500 )
DermaPanel:SetTitle( “F1 Menu” )
DermaPanel:SetVisible( true )
DermaPanel:Center()
DermaPanel:SetDraggable( true )
DermaPanel:ShowCloseButton( true )
DermaPanel:MakePopup()

local PropertySheet = vgui.Create( “DPropertySheet” )
PropertySheet:SetParent( DermaPanel )
PropertySheet:SetPos( 5, 30 )
PropertySheet:SetSize( 690, 457 )

local SheetItemOne = vgui.Create( “DLabel” )
SheetItemOne:SetText( “Testing” )
SheetItemOne:SetFont(“HUDNumber5”)
SheetItemOne:SetPos( 10, 50 )
SheetItemOne:SizeToContents()

local SheetItemTwo = vgui.Create( “DCheckBoxLabel” )
SheetItemTwo:SetText( “Use SENTs?” )
SheetItemTwo:SetConVar( “some_convar” )
SheetItemTwo:SetValue( 1 )
SheetItemTwo:SizeToContents()

PropertySheet:AddSheet( “General”, SheetItemOne, “gui/silkicons/user”, false, false, “Commands/Info” )
PropertySheet:AddSheet( “Testing”, SheetItemTwo, “gui/silkicons/group”, false, false, “Testing” )

SheetItemOne.Paint = function()
surface.SetDrawColor( 50, 50, 50, 255 )
surface.DrawRect( 0, 0, SheetItemOne:GetWide(), SheetItemOne:GetTall() )
end

end

concommand.Add(“menu”, Menu)
[/lua]

NotesI’m using Luapad if that affects it somehow.

Try to use the following link within the paint function instead.

What Kunit said. Also, we meet again Kunit…lol

It’s been a while, I didn’t think you were still around. You should pm me your steam again.

Sounds good haha. Also OP, try using blah.Paint = function() end

I fixed it by drawing the text after the paint function, thanks for the help Renegade and C-Unit.