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 is not actually overriding the Paint thing, it’s acting like PaintOver


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 )


Any trick anyone want to share :}

Thanks in advance.

Can you verify it’s actually painting over or not painting at all by painting it a different color? Also what is with xxx.drawBox lol.

EDIT: Make sure there’s not another panel behind or something strange like that. I’ll test painting over a dmenu later

What are you asking exactly?
And what is the problem?

It looks like you’ve adjusted the display, what’s wrong with it … ???
I’m very confused.

Perhaps take a look at the source code for the dcombobox?