|
Home > Archive > Programming with dBASE > February 2006 > Onchange With Keypress
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 |
Onchange With Keypress
|
|
| Tom Preston 2006-02-17, 8:23 pm |
| My combobox_onchange event fires normally when the selection is made
with the mouse, but it does not fire when the arrow keys are used to
make the selection. Is this a known issue?
Thanks
Tom
| |
| Todd Kreuter 2006-02-17, 8:23 pm |
| Tom Preston wrote:
>
> My combobox_onchange event fires normally when the selection is made
> with the mouse, but it does not fire when the arrow keys are used to
> make the selection. Is this a known issue?
Are you expecting the onchange to fire for each item you navigate to
with the arrow keys, or after you press enter? I beleive onChange should
fire when you click on an item, or when you type in a value and press
enter, or when you arrow to an item and press enter, or change the value
and leave the control (before the control loses focus).
There is a problem when the combobox.style = 1 in that using the arrow
keys and pressing enter does not result in onChange firing. ComboAFS in
the dUFLP works around this problem, but the combobox will not fire
onChange every time you arrow to a differnt item. I've done some grid
based comboboxes that have an onSelChange event that fires when you
arrow to another item.
When combobox.stlye = 2, I belive onChange fires each time you arrow to
a different item (enter not required).
--
Todd Kreuter [dBVIPS]
| |
| Tom Preston 2006-02-19, 8:28 pm |
| In article <43F65368.7E34781E@dbvips.usa>, tkreuter@dbvips.usa says...
> Tom Preston wrote:
>
> Are you expecting the onchange to fire for each item you navigate to
> with the arrow keys, or after you press enter? I beleive onChange should
> fire when you click on an item, or when you type in a value and press
> enter, or when you arrow to an item and press enter, or change the value
> and leave the control (before the control loses focus).
>
> There is a problem when the combobox.style = 1 in that using the arrow
> keys and pressing enter does not result in onChange firing. ComboAFS in
> the dUFLP works around this problem, but the combobox will not fire
> onChange every time you arrow to a differnt item. I've done some grid
> based comboboxes that have an onSelChange event that fires when you
> arrow to another item.
>
> When combobox.stlye = 2, I belive onChange fires each time you arrow to
> a different item (enter not required).
>
Thank you Todd. Setting it to style 2 solves the problem. I think I knew
that a couple of years ago...must have purged it.
Thanks again for the help.
Tom
| |
| Todd Kreuter 2006-02-20, 9:23 am |
| Tom Preston wrote:
>
> Thank you Todd. Setting it to style 2 solves the problem. I think I knew
> that a couple of years ago...must have purged it.
>
> Thanks again for the help.
You're welcome, Tom.
--
Todd Kreuter [dBVIPS]
|
|
|
|
|