General information
Category:
Forms & Form designer
Title:
Enter-key won't advance to next textbox, but tab-key will
Well I've screwed something up in a new way so I'm about to learn lots (I hope).
Working on form with textboxes for entry - tab order set - enter your data, press enter-key, and focus moves to next box.
Worked out lots of details elsewhere on form and then notice that 'enter your data, press enter-key' no longer moves focus to next textbox.
So I event track an older version of form where enter-key is ok and see:
plot.Paint()
plot.cooperator1.KeyPress(13, 0)
plot.KeyPress(13, 0)
plot.cooperator1.RangeLow()
plot.cooperator1.RangeHigh()
plot.cooperator1.Valid()
plot.cooperator1.LostFocus()
plot.plot_bc1.When()
plot.plot_bc1.GotFocus()
plot.plot_bc1.Message()
plot.Paint()
then event track non-working form (pressing enter-key) and see:
plot.Paint()
plot.cooperator1.KeyPress(13, 0)
plot.KeyPress(13, 0)
plot.cooperator1.RangeLow()
plot.cooperator1.RangeHigh()
plot.cooperator1.Valid()
plot.Paint()
looks like somethings up with valid BUT you can tab-key to next field or click on next field and focus moves.
so event track non-working form (pressing tab-key) and see:
plot.Paint()
plot.cooperator1.KeyPress(9, 0)
plot.KeyPress(9, 0)
plot.cooperator1.RangeLow()
plot.cooperator1.RangeHigh()
plot.cooperator1.Valid()
plot.cooperator1.LostFocus()
plot.plot_bc1.When()
plot.plot_bc1.GotFocus()
plot.plot_bc1.Message()
plot.Paint()
Nothing in valid or superclass valid of plot.cooperator1.valid .
Tried putting RETURN .t. in plot.cooperator1.valid but no changes.
I've got to move onto other projects for the day so it was time to ask for help.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only