default button

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
core
Just popping in
Just popping in
Posts: 6
Joined: Wed Oct 26, 2005 16:40

default button

Postby core » Wed Oct 26, 2005 18:55

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.

User avatar
martignasse
Just can't stay away
Just can't stay away
Posts: 227
Joined: Thu Apr 14, 2005 08:10
Location: Lyon, FRANCE

Re: default button

Postby martignasse » Thu Oct 27, 2005 16:42

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 5 guests