• gui.OpenURL not taking focus on text inputs or drop menus
    2 replies, posted
I am adding a tab to [URL="http://www.facepunch.com/showthread.php?t=1228438"]Pointshop[/URL] that displays a webpage. [code] local XTab = vgui.Create( "HTML" ) XTab:SetSize( self:GetWide() - 20, self:GetTall()) XTab:OpenURL( "http://XXXXX.com/X.php" ) tabs:AddSheet('Hello There', XTab, 'icon16/badge.png', false, false, '') [/code] It displays properly, scrolls properly, <input type="submit"> is clickable, links are clickable; but I can't use dropdown <select> menus, and <input type="text"> does not take focus. I can select the text within the text box with the cursor, but when I type nothing shows up in the box, instead it just executes the game binds like walk, say, etc. Any insight would be helpful, thanks [b]edit[/b] Tried: local XTab = vgui.Create( "[B]DHTML[/B]" ) No luck.
You have to toggle the mouse and keyboard clickers first.
[QUOTE=Lerpaderp;39764505]You have to toggle the mouse and keyboard clickers first.[/QUOTE] Thanks for the lead, but that didn't seem to solve it. added: [code] XTab:SetMouseInputEnabled(true) XTab:SetKeyboardInputEnabled(true) [/code] It is and has been capturing *some* things, just not the <select> and text <input> boxes. [B]edit:[/B] If I XTab:MakePopup() I am able to enter text in the <input> (delete key doesnt work) but the <select> box still doesn't work at all. And I'd rather this not be a popup. [B]edit: [/B]gui.EnableScreenClicker(true), no luck. Has _anyone_ got these things working, preferably outside of a MakePopup()?
Sorry, you need to Log In to post a reply to this thread.