- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it possible to use the enter key after typing a value in an edit box, so the cursor goes to another edit box ( or to another component, following the tab order) ?
I am using CVF PE 6.6B
Thanks,
Geraldo
I am using CVF PE 6.6B
Thanks,
Geraldo
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes. The simplest method is:
1) Remove "Default button" style from the IDOK button;
2) Add another button, say, "ID_NEXT". Uncheck "visible" and "tab stop" and add "Default button" style.
3) Add & DlgSetSub the following callback for it:
The idea is that the default button callback is called on Enter key; in it, just tell the dialog to set the focus to the next control.
Jugoslav
1) Remove "Default button" style from the IDOK button;
2) Add another button, say, "ID_NEXT". Uncheck "visible" and "tab stop" and add "Default button" style.
3) Add & DlgSetSub the following callback for it:
SUBROUTINE OnNext(Dlg,ID,iEvent) USE DFLOGM USE DFWIN, ONLY: SendMessage, WM_NEXTDLGCTL TYPE(DIALOG):: Dlg INTEGER:: ID,iEvent,iSt iSt = SendMessage(Dlg%hWnd, WM_NEXTDLGCTL, 0, 0) END SUBROUTINE OnNext
The idea is that the default button callback is called on Enter key; in it, just tell the dialog to set the focus to the next control.
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, (once again)
Geraldo
Geraldo

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page