Click to See Complete Forum and Search --> : Changing TAB sequence


Syelixn
April 12th, 1999, 02:47 AM
I've two questions here.

Firstly, I would like to know how can I change the sequence that TAB key sent focus in my dialogbox. I've a number of edit and combo boxes, each time the TAB key is pressed, the input focus is jump to another control. The pattern seems to follow the placement sequence when I was designing the dialogbox. Is there a way to overcome this besides re-designing everything ?

Secondly, can I 'map' the ENTER key to be like pressing the OK button instead of the CANCEL button ? If so, how do I do it ?

Thanks

Dave Lorde
April 12th, 1999, 03:49 AM
To change the tab sequence for the dialog, use the resource editor. While editing the dialog, select 'Tab Order' from the 'Layout' menu...

Dave

Dave Lorde
April 12th, 1999, 03:53 AM
To have the 'OK' button as the default for the 'Enter' key, make sure it has the 'Default button' property set in the 'Styles' tab of the property sheet.

Dave

Syelixn
April 12th, 1999, 04:55 AM
Thank you Dave, I got it !