Hi,
I have a dialog box on which I have coded to trap the enter key to move to the next tab control item rather than activate the okay button.
How can I detect when focus is reset onto the okay button so I can automatically force the OnOk to fire? The okay button always follows the last user entry box (i.e. edit, list, etc) but I don't always know how many tab control items there are before the Ok.
Does anybody have an idea of how I might detect that the Okay button is either the next tab item to get focus or else how to detect when the button does get focus?
I'd be grateful for any suggestions.
I have a dialog box on which I have coded to trap the enter key to move to the next tab control item rather than activate the okay button.
How can I detect when focus is reset onto the okay button so I can automatically force the OnOk to fire? The okay button always follows the last user entry box (i.e. edit, list, etc) but I don't always know how many tab control items there are before the Ok.
Does anybody have an idea of how I might detect that the Okay button is either the next tab item to get focus or else how to detect when the button does get focus?
I'd be grateful for any suggestions.