|
Home > Archive > dBASE Code Sharing > October 2005 > Re: Paintbox Key Handler (Zip)
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: Paintbox Key Handler (Zip)
|
|
| Rich Assaf 2005-10-27, 8:02 am |
| Todd Kreuter Wrote:
> Attached is the zip file with demo form.
Thanks, Todd, I had only recently discovered your SeekerPX control, and already new and improved!
2 questions:
1) I'd like the keypress of Enter to move to the next field, which is done simply enough with a KEYBOARD command - will it break anything as far as you know to test for Enter in your onKeyDown, and KEYB a tab?
2) After typing in the seeker control, a double-click to select the entire text does not work (as can be done with a standard entry field). Is it possible to add the onLeftDblClick code to select the entire contents of the field?
Finally, one consideration for your next version <g>: it would be nice to have a test for a specific character (e.g. a comma or a colon) and if detected then the text would be highlighted up to the next occurence of that character. For example, consider
a fullname field formatted as LNAME,FNAME. You want to go to JOHNSTON,STEVE but there are many JOHNSTONs, starting with ABIGAIL.... typing just enough chars to get the correct last name, and then typing a comma would autocomplete the last name, and the
user is ready to type the 'S' - very efficient. Another example where this would be helpful: Quickbooks uses subcategories separated with colons, e.g. Manager Expenses:Continuing Education:OSHA:Annua
l. Typing "man:" then "con:" might get directly to t
he OSHA subcategories....
Thanks again, Rich
| |
| Todd Kreuter 2005-10-27, 8:02 am |
| Rich Assaf wrote:
>
> 1) I'd like the keypress of Enter to move to the next field, which is done simply enough with a KEYBOARD command - will it break anything as far as you know to test for Enter in your onKeyDown, and KEYB a tab?
I believe that your CUAEnter setting should handle this. Have you tried
setting CUAEnter off?
> 2) After typing in the seeker control, a double-click to select the entire text does not work (as can be done with a standard entry field). Is it possible to add the onLeftDblClick code to select the entire contents of the field?
Added in version 1.01
> Finally, one consideration for your next version <g>: it would be nice to have a test for a specific character (e.g. a comma or a colon) and if detected then the text would be highlighted up to the next occurence of that character. For example, consid
er a fullname field formatted as LNAME,FNAME. You want to go to JOHNSTON,STEVE but there are many JOHNSTONs, starting with ABIGAIL.... typing just enough chars to get the correct last name, and then typing a comma would autocomplete the last name, and th
e user is ready to type the 'S' - very efficient. Another example where this would be helpful: Quickbooks uses subcategories separated with colons, e.g. Manager Expenses:Continuing Education:OSHA:Annua
l. Typing "man:" then "con:" might get directly to
the OSHA subcategories....
Added in version 1.01.
I too had seen this before, not sure where. At first I thought this
should be done with a subclassed control, but realized it was an easy
enough add on (hopefully without breaking anything) so I built it into
the control. See the post for the updated version.
Thanks for your comments!
--
Todd Kreuter [dBVIPS]
|
|
|
|
|