How to create default button on a FrameWindow? It's a common using mechanism, when, for example:
* i have Editbox and Button on a frame
* im entered some text
* im press enter and this presses the default button on a frame button.
default button
Moderators: CEGUI MVP, CEGUI Team
- martignasse
- Just can't stay away
- Posts: 227
- Joined: Thu Apr 14, 2005 08:10
- Location: Lyon, FRANCE
Re: default button
How to create default button on a FrameWindow?
it's not build in, you have to create that by yourself
basicly, you have to :
- suscribe event to the key press on the edit box.
- filtering in the event callback fonction if the enter key is pressed.
- in the case, make the button fire a clicked event.
hope it help
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 3 guests