Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where does focus go after last editable control
Message
From
10/06/1998 16:01:27
 
 
To
10/06/1998 00:09:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00106453
Message ID:
00106897
Views:
35
>Sylvia,
>
>Hi, See Normally what we do is :
>
>I have my own classes for Navigation Bar, Own class for Pageframed form
>
>So in the Tab order always it's first that I put my navigation bar on the top
>than all of my controls and than in the lost focus of my last control
>I set the setfocus to the save button and no need to give the tab ordering
>for the Pageframe
>
>and the Activate event of the Page frame gets called when the page frame is changed..
>
>Try focusing the control on the navigation bar for the last control and you will not found you cursor going into wonder world..
>
>Regds
>Raj

Thanks Raj -

I did some testing after I wrote the note and came up with more or less what you suggest (deciding that I probably wanted to have the save button after the last control - I just wanted to see what others did), and it did seem that set focus was what was missing from my form.

Regarding the activate button - I knew that it was called when I changed pages, but something else was also triggering it for me (I'm still not sure what that 'something' was, but it evidentally caused the page to lose focus, so when it came back into focus the activate fired again). That would normally be OK, but not if I'm editing a control and my page activate calls a requery. This causes an error message for me about uncommitted changes. I'm still not exactly sure why the activate was firing after my last control, but thought it might have something to do with the cursor going off into 'wonder world'.

Thanks for your response.

Sylvia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform