• Problem with VGUI focus.
    2 replies, posted
So I got a DHTML as a background and then I have DButtons and DPanels on top of that, but when I press the background the focus changes to it and the buttons and panels disappear. They are both childs of the html panel but this still occour. I have tried to use the PANEL:KillFocus() and PANEL:RequestFocus() but they doesn't seem to work too well. Anyone know a solution to this?
Assuming the HTML has been popped up, this might work: [CODE]HTML:SetPopupStayAtBack(true)[/CODE] [URL="http://wiki.garrysmod.com/page/Panel/SetPopupStayAtBack"]Wiki link[/URL]
It works. Thank you so much!
Sorry, you need to Log In to post a reply to this thread.