Create Invisible Button/Scrollover

Im trying to create a nice UI for a loadout choosing screen, and i don’t want to use normal Derma.
How do i create buttons on top of a surface.DrawRect that will light up the rectangle and allow a click input? can i make a normal derma button and make it invisible or something?
Thanks!

You can override the Paint function and do whatever you’d like.


function PANEL:Paint( iWidth, iHeight )
end

I’m pretty sure it translates the draw position as well, so drawing a rect like


surface.DrawRect( 0, 0, iWidth, iHeight );

should draw a rectangle the entire span of the button.