Page 1 of 1

default button

Posted: Wed Oct 26, 2005 18:55
by core
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.

Re: default button

Posted: Thu Oct 27, 2005 16:42
by martignasse
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 :)