How to repaint part of a DPropertySheet?

Here’s an example of a DPropertySheet from the wiki-



local frame = vgui.Create( "DFrame" )
frame:SetSize( 500, 300 )
frame:Center()
frame:MakePopup()

local sheet = vgui.Create( "DPropertySheet", frame )
sheet:Dock( FILL )

local panel1 = vgui.Create( "DPanel", sheet )
panel1.Paint = function( self, w, h ) draw.RoundedBox( 4, 0, 0, w, h, Color( 0, 128, 255 ) ) end
sheet:AddSheet( "test", panel1, "icon16/cross.png" )

local panel2 = vgui.Create( "DPanel", sheet )
panel2.Paint = function( self, w, h ) draw.RoundedBox( 4, 0, 0, w, h, Color( 255, 128, 0 ) ) end
sheet:AddSheet( "test 2", panel2, "icon16/tick.png" )


The problem with this is I’m unsure how to paint the tabs of the panel, in this case they’re named ‘test’ and ‘test 2’.

[editline]25th April 2015[/editline]

Nevermind, found facepunch.com/showthread.php?t=1310132