Posted 19 years ago
by Mark Mickelsen
First problem: I'm having trouble controlling where the focus is when an interior page comes up. I want to be able to decide exactly which text box has the blinking cursor in it based of runtime data. I compute where the cursor is supposed to be in the "page"_Enter event, that is, the event that fires when the page is loaded. When I know what box I want to have the focus, I execute a "box".focus() function to put the focus there. But when I run it, the focus doesn't appear anywhere. I've messed with TabStops and TabIndexes and everything else I can think of and I just can't get the cursor to appear when the page is first loaded without having to click the mouse somewhere. And then I don't know how to control where it will appear.
Second problem: I want the focus on a page to go down the page from text box to text box until it gets to a SAVE button and then I want it to stay there unless the user specifically clicks on a text box or on the NEXT button. I don't want it to move with the TAB key, BACKSPACE key, or any other keystroke. I can't figure out how to make this happen.
Any help with these problems would be greatly appreciated. I've been banging my head against the wall on them for about three days now. Please help.
Thanks,
Mark
Second problem: I want the focus on a page to go down the page from text box to text box until it gets to a SAVE button and then I want it to stay there unless the user specifically clicks on a text box or on the NEXT button. I don't want it to move with the TAB key, BACKSPACE key, or any other keystroke. I can't figure out how to make this happen.
Any help with these problems would be greatly appreciated. I've been banging my head against the wall on them for about three days now. Please help.
Thanks,
Mark