• DScrollPanel problems
    2 replies, posted
This is my code for my DScrollPanel and the DPanelList that's inside it. For some reason my list is unscrollable. Not sure why this is. Any suggestions? [CODE] local scrollpanel = vgui.Create( "DScrollPanel", jobs ) scrollpanel:SetSize( 500, 500 ) scrollpanel:SetPos ( 20, 5 ) local categoryList = vgui.Create("DPanelList", scrollpanel); categoryList:SetSize(450, 450) categoryList:SetSpacing( 5 ) scrollpanel:AddItem(categoryList)[/CODE] Here's an image of how it looks in-game: [IMG]http://i.gyazo.com/50cd5119f0b7084cd4afbea6eb47b2d7.png[/IMG]
DPList:EnableVerticalScrollbar(true)
Worked beautifully, thanks!
Sorry, you need to Log In to post a reply to this thread.