Ken Mayer [dBVIPS]
2008-09-19 22:30:17 UTC
I can only reproduce the problem I am experiencing in a really complex
for ... or at least, I cannot reduce it down to a form that I can
reproduce it, but ...
Spinbox -- onChange event handler. IF: you enter the value by typing it
into the spinbox, then tab off the control, this event does not always
fire. If you use the buttons to change the value in the control, the
event fires. If you click somewhere else on the form after changing the
value by typing, it fires. But in this one form, there are occaisions
where it does not fire if you tab off the control.
The workaround is to call the event handler for onChange in the spinbox
control's onLostFocus event handler, which seems to work.
If I could trim it down to something smaller, I would, but so far, my
attempts are not working.
To test it in the complex form, I added code at the beginning of the
onChange event code that output:
? form.activecontrol.name
? "QtySB_onChange() fired ..."
And when tabbing off the control (after entering a value by typing it,
rather than using the buttons of the spinbox) this did not appear in the
output pane of the Command Window, but if I clicked somewhere else, it
did; or if I used the buttons to change the value.
Has anyone else seen anything like this?
Ken M.
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase/dBASEBooks.htm
http://www.goldenstag.net/dbase
for ... or at least, I cannot reduce it down to a form that I can
reproduce it, but ...
Spinbox -- onChange event handler. IF: you enter the value by typing it
into the spinbox, then tab off the control, this event does not always
fire. If you use the buttons to change the value in the control, the
event fires. If you click somewhere else on the form after changing the
value by typing, it fires. But in this one form, there are occaisions
where it does not fire if you tab off the control.
The workaround is to call the event handler for onChange in the spinbox
control's onLostFocus event handler, which seems to work.
If I could trim it down to something smaller, I would, but so far, my
attempts are not working.
To test it in the complex form, I added code at the beginning of the
onChange event code that output:
? form.activecontrol.name
? "QtySB_onChange() fired ..."
And when tabbing off the control (after entering a value by typing it,
rather than using the buttons of the spinbox) this did not appear in the
output pane of the Command Window, but if I clicked somewhere else, it
did; or if I used the buttons to change the value.
Has anyone else seen anything like this?
Ken M.
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase/dBASEBooks.htm
http://www.goldenstag.net/dbase