Is there any GUI element for user input like the
MFC-class CEdit??
I searched the documentation but found nothing... perhaps I am blind?
Is there somebody out there, who had found this class or made
something like it, and could post me this source???
I want to make some forms the player can fill in.
thanks in advance
newbie: GUI-element for input or edit?
IGUIEditBox
well, there is no editbox support at the moment. I tried to write one but there is a little problem. Gui elements dont get any KEY_INPUT events. That means you have to catch KEY_INPUT events using your event receiver class and send them to the editbox object. I hope niko will change the gui environement class so every gui element is able to handle KEY_INPUT events. But until that change the code will look ugly if you try to write a editbox class.
I think it would be best if he implemented a 'focus' system.
This way 'every' GUI element does not have to receive key input (which means a lot of extraneous msg passing), just whatever has focus.
Focus is selected with the mouse, and only certain items need to take focus (though some items like windows could automatically choose one of their button children to take the focus from them). You could also implement a hot-key system, and a tab-focus system as well.
This way 'every' GUI element does not have to receive key input (which means a lot of extraneous msg passing), just whatever has focus.
Focus is selected with the mouse, and only certain items need to take focus (though some items like windows could automatically choose one of their button children to take the focus from them). You could also implement a hot-key system, and a tab-focus system as well.
a screen cap is worth 0x100000 DWORDS