How do you set the position of a DMenu

How do you do it, if you didn’t already know it has no SetPos function.

I think it gets set to your mouse position.

Well, what I need to do is create a DMenu in the very center of my screen whenever I press a certain key. Tried to use
[lua] gui.SetMousePos( ScrW()/2, ScrH()/2 ) [/lua]
before I call the DMenu into existence but that doesn’t seem to work…

How can do this?

Are you sure it doesn’t have a SetPos function? It’s a panel, and I’m pretty sure all panels have the function SetPos on their metatable.