How to accept Enter key in Button control.
-
I have created a Dialog using Visual studio 2003. in that dialog i have couple of control buttons. And those buttons are in tab stop order. In 1st tab stop 1st button is focused, and if i click space bar than it got clicked. So i expect the enter click should work in the same way when the button is focused. Is there any other property need to set to acheive that.... thanks in advance.....
Birajendu SonicWALL Bangalore India
-
I have created a Dialog using Visual studio 2003. in that dialog i have couple of control buttons. And those buttons are in tab stop order. In 1st tab stop 1st button is focused, and if i click space bar than it got clicked. So i expect the enter click should work in the same way when the button is focused. Is there any other property need to set to acheive that.... thanks in advance.....
Birajendu SonicWALL Bangalore India
Look at the BS_DEFPUSHBUTTON style. The button that has this style is what is invoked (clicked) when you hit enter.
onwards and upwards...
-
Look at the BS_DEFPUSHBUTTON style. The button that has this style is what is invoked (clicked) when you hit enter.
onwards and upwards...
Thanks for the quick reply. But in VC++ IDE i did not get the button style property, I think i can do some thing like sendmessage() to the pertucular button to chnage style but i dont how to do that that. Do you have any idea? Thanks in advance....
Birajendu SonicWALL Bangalore India
-
Thanks for the quick reply. But in VC++ IDE i did not get the button style property, I think i can do some thing like sendmessage() to the pertucular button to chnage style but i dont how to do that that. Do you have any idea? Thanks in advance....
Birajendu SonicWALL Bangalore India
In the dialog editor, look for the Default Button checkbox option.
onwards and upwards...