Hi everyone,
How can I make fw to exit a DTPicker control with the enter and/or return key?
Thank you,
Reinaldo
Hi everyone,
How can I make fw to exit a DTPicker control with the enter and/or return key?
Thank you,
Reinaldo
I find that I can only exit a dtpicker control by pressing the TAB key. I have tried changing the methods on the class to no avail.
There has to be a way to exit this control using the <return> or <enter> keys.
any ideas?
Reinaldo.
Reinaldo,
If you change this in samples\TestDtp.rc:
PUSHBUTTON "Close", 103, 148, 6, 50, 14
and build samples\TestDtp.prg, it properly goes to next control pressing enter.
REDEFINE BUTTON ID 103 OF ::odlg PROMPT "&Next" ACTION iif( oget[8]:lFocused, ::odlg:GoNextCtrl( ::odlg:hWnd ), )Reinaldo,
The Tab key is the correct key for Windows apps. The Enter key is a holdever from the DOS era. In Windows apps, the Enter key is supposed to trigger the default pushbutton, which is usually the OK button on a dialog.
James
Yes, I realize that. However, there are circumstances where it is much more convenient to do data entry using the numeric keypad and move from field to field using the enter key. You should see the speed of some users doing data entry of item number, units, date and back around. Item after item after item... Forcing them to use the tab key will seriously slow the process.
My problem was with the dpicker class field. I changed it to a standard tget field to pickup the date and it working as needed.
Thank you for your reply,
Reinaldo.
Reinaldo,
I see your point. I have not come across a situation where they were only entering numbers.
James