Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>I'm just tearing my hair out with this one! I'm in VFP 5. I have 9 pages in a pageframe that represent different activities of clients. When data gets saved, I give the client the option to go back to the first page of data. When they say yes, I activate the 1st page with this: THISFORM.PAGEFRAME1.ACTIVEPAGE=1 This works, and from watching with the debugger it triggers the activate procedure for page 1. In the activate procedure I have the command: This.Text1.setfocus. Getting to the page works on the activepage command, but the focus just goes up to the tab title - not on text1. It DOES focus on text1 if the user clicks on the tab instead of using my programmatic option. What gives? This is the case everywhere, by the way, that I activate a page programmtically. I can't seem to set the focus to a particular object - and it matters very much that I do... Anyone got any ideas?
>
>TIA
>Diana
Diana -
This sort of sounds vaguely familiar to me. I have a page frame with 3 pages and believe I had to do some manipulation with the tab order using List to get things to work correctly. But I also setfocus to any number of different controls in my page activate (e.g. to a navigation button to start, then to specific controls which fail validation later), and have not had any problems.
Sylvia
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement