DComboBox Paint GetCanvas():Children()

Hello, im wondering if there’s a trick to remove the default gmod skin from this without creating an entire PANEL thing to override the default code.

As you can see [ i did it that way to show that is not actually overriding the Paint thing, it’s acting like PaintOver

Code:



for mk, mv in pairs( wList.Menu:GetCanvas():GetChildren() ) do
	function mv:Paint( w, h )
		surface.SetDrawColor( 77, 77, 77, 100 )
		xxx.drawBox( 0, 0, 0, w - 20, h, Color( 77, 77, 77, 100 ) )
		surface.SetDrawColor( 0, 0, 0, 100 )
		surface.DrawLine( 0, h - 1, w, h - 1 )

	end
end


Any trick anyone want to share :}

Thanks in advance.