derma menu

hey! im making a job npc and i made the basic layout i want to use(placed the icons and buttons) but when my friends used the npc the buttons were in different spots for him. his screen size was different. how can i make my menu look the same on all screens? i tryed making a frame with a background panel inside it and i put everything in that panel but things still move around. the frame and the background stays in the same place for any screen size but the buttons in the background panel move around for different screens

since my demonic Acecool Summoncircle didn’t work i’ll try it that way

[lua]function SummonAcecool(,,_, tutorial)
if !tutorial then return end;
return “John ‘Acecool’ Moser”

lua_run SummonAcecool(0,1,0, vgui_scaling)[/lua]

so enought with the jokes.
This is basicly the ground idea of Scaling VGUI. It should practise the ground understandings of it.

Also when you change your resolution, sometimes the VGUI won’t scale correctly. But don’t worry. Even for that he got an tutorial.


[editline]16th October 2014[/editline]

if ScrW() > 640 then -- Make it larger if we can.
		wrap:SetSize( ScrW()*0.9, ScrH()*0.9 )
		wrap:SetSize( 640, 480 )

method im using now was not very good i guess