Tab in CEGUI
BlitzMax Forums/Brucey's Modules/Tab in CEGUI
| ||
Should tab be working to change focus from each control? I also can't seem to record what key is pressed using TCEButtonBase.EventKeyDown event, as I was trying to setup a tab system as a manual workaround. Any idea how this can be done specifically in cegui? Thanks |
| ||
Should tab be working to change focus from each control? I found this : http://www.cegui.org.uk/wiki/index.php/Tab_Order which we may want to implement? |
| ||
Going through that, something doesn't seem right. Subscribing event.. TCEEditbox(TCEWindowManager.getWindow("LoginWindow/txtUsername")).subscribeEvent(TCEButtonBase.EventCharacterKey, Event_KeyTest) Keytest: Function Event_KeyTest:Int(args:TCEEventArgs) Notify TCEKeyEventArgs(args).getCodepoint() Return True End Function Doesn't seem to return the proper codepoint...coming from the link you sent me: in..(no need to go through, just for reference) contains this line: if(static_cast(e).codepoint == 9) // Tab or Shift+Tab my previously mentioned: "Notify TCEKeyEventArgs(args).getCodepoint()" isn't returning 9 when I press tab. It always returns the same number no matter what key I press. I would have no problem implimenting my own tab system if I could figure out what key is being pressed in this event, or even event_keyup/event_keydown events, but I can't seem to get beyond this part. |
| ||
Eh... couldn't get anything working for keycodes, so I just half-assed it and used keypressed(key_tab) and checking which controls were active and going from there. |