• DTextEntry won't focus...
    4 replies, posted
Currently, this is a stub of my code: [lua] self.form = vgui.Create("DFrame", self) self.form.tabs = vgui.Create("DPropertySheet", self.form) self.form.tabs.login = vgui.Create("DFrame", self.form.tabs) self.form.tabs.login.teUsername = vgui.Create("DTextEntry", self.form.tabs.login) [/lua] The DTextEntry in question is "self.form.tabs.login.teUsername". In it's parental hierarchy, there are 3 DFrames... And yet it is unfocusable. Before this, I used to have the DTextEntry on "self.form", and it was focusable. The only difference now is a DPropertySheet before it. How do I make the DTextEntry focusable again?
What do you mean by focusable? As in you can type into it?
[QUOTE=Chessnut;33919680]What do you mean by focusable? As in you can type into it?[/QUOTE] Precisely.
[b][url=http://wiki.garrysmod.com/?title=Panel.SetKeyboardInputEnabled]Panel.SetKeyboardInputEnabled [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
[QUOTE=Chessnut;33919802][b][url=http://wiki.garrysmod.com/?title=Panel.SetKeyboardInputEnabled]Panel.SetKeyboardInputEnabled [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b][/QUOTE] Thank you so much! But that wasn't the solution! It says on that article "while theres a frame with Panel.MakePopup function activated". My actual problem was that I forgot to make my "self.form" frame a popup.
Sorry, you need to Log In to post a reply to this thread.