How to make a drop-down menu ?

Hello everyone !

I created a menu and I would like to make a sliding menu or when I would add a square or other I could go down the page ?

here is my code :

local Frame = vgui.Create( “DFrame” )
Frame:SetPos( 5, 5 )
Frame:SetSize( 300, 150 )
Frame:SetTitle( “New window” )
Frame:SetVisible( true )
Frame:SetDraggable( false )
Frame:ShowCloseButton( true )
Frame:MakePopup()

I think

DCollapsibleCategory will do the job?

There’s also DComboBox and

DermaMenu if the above isn’t what you’re after.

No I wanted like this:

https://image.noelshack.com/fichiers/2017/41/3/1507685454-model.png

I would like this bar to be automatically enlarged if I add things

That’s called a SCROLLABLE ELEMENT, GMod has DScrollPanel