Derma PropertySheet help

So I’m having an issue with my Derma Panel…
The sheets on my code are working fine, but when I want the DLaben to set the posistion, its stuck in the middle of my derma panel… I have no clue why, so if you could help me that’d be awesome.
As well if you guys know any way to center the derma on every players screen, so the size of the screen doesn’t matter.

Picture: http://puu.sh/6pSpm.jpg


function showcrappymenu()
local crappymenu = vgui.Create( "DFrame" ) -- Creates the frame itself
crappymenu:SetPos( 50,50 ) -- Position on the players screen
crappymenu:SetSize( 1000, 520 ) -- Size of the frame
crappymenu:SetTitle( "VIP Perks" ) -- Title of the frame
crappymenu:SetVisible( true )
crappymenu:SetDraggable( true ) -- Draggable by mouse?
crappymenu:ShowCloseButton( true ) -- Show the close button?
crappymenu:MakePopup() -- Show the frame
crappymenu.Paint = function()
	draw.RoundedBox(4,0,0, crappymenu:GetWide(), crappymenu:GetTall()-5, Color(50,50,50,255)) -- (1,2,3)    1 = How rounded it should be      2 = Bredden       3 = Højden ### Main box
	draw.RoundedBox(4,0,0, crappymenu:GetWide(), 25, Color(164,0,0,255)) -- (1,2,3)    1 = How rounded it should be      2 = Bredden       3 = Højden ### Header grey

end

-- AVATAR

local Avatar = vgui.Create( "AvatarImage", crappymenu )
Avatar:SetSize( crappymenu:GetWide()-5, crappymenu:GetTall()-5 )
Avatar:SetPos( 500, 1000 )
Avatar:SetPlayer( LocalPlayer(), 64 )




-- SHEETS / PAGES

local PropertySheet = vgui.Create( "DPropertySheet" )
PropertySheet:SetParent( crappymenu )
PropertySheet:SetPos( 5, 30 )
PropertySheet:SetSize( 990, 480 )
 
 -- PAGES 

 
 -- BRONZE
local Bronze = vgui.Create( "DLabel", crappymenu )
Bronze:SetText( "Bronze" )
Bronze:SetPos( 10,10 ) 

-- SILVER
local Silver = vgui.Create( "DLabel", crappymenu )
Silver:SetText( "Silver" )
Silver:SetPos( 10,10 ) 

-- GOLD
local Gold = vgui.Create( "DLabel")
Gold:SetText( "Gold" )
Gold:SetPos( 10,10 ) 

-- PLATINUM
local Platinum = vgui.Create( "DLabel", crappymenu )
Platinum:SetText( "Platinum" )
Platinum:SetPos( 10,10 ) 

-- DIAMOND
local Diamond = vgui.Create( "DLabel", crappymenu )
Diamond:SetText( "Diamond" )
Diamond:SetPos( 10,10 ) 

 

-- TABS 
 
PropertySheet:AddSheet( "Bronze", Bronze, "icon16/heart.png", false, false  )
PropertySheet:AddSheet( "Silver", Silver, "icon16/heart.png", false, false )
PropertySheet:AddSheet( "Gold", Gold, "icon16/heart.png", false, false  )
PropertySheet:AddSheet( "Platinum", Platinum, "icon16/heart.png", false, false )
PropertySheet:AddSheet( "Diamond", Diamond, "icon16/heart.png", false, false  )


end

concommand.Add( "kmenu_open", showcrappymenu )

Put your label onto a DPanel and put the DPanel into AddSheet.

Thanks, I’m noob to lua, so could you explain that a bit further?

Like what to change :S

I just did.



local DiamondPNL = vgui.Create( "DPanel", crappymenu )

local Diamond = vgui.Create( "DLabel", DiamondPNL )
Diamond:SetText( "Diamond" )
Diamond:SetPos( 10,10 ) 

 

-- TABS 
 
PropertySheet:AddSheet( "Bronze", DiamondPNL , "icon16/heart.png", false, false  )

Jesus, thanks a lot!