Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Two clicks to move from page to page
Message
 
 
À
19/08/2007 14:36:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01249018
Message ID:
01249091
Vues:
35
>>Hi
>>I have a pageframe--page--3 textboxes
>>A user fills the textboxes and after the last textbox is filled the cursor goes to the first textbox and a recktangle appears around the page caption. Now to move to the next page the user has to click on the next tab twice. First click - the cursor disappears from the first textbox while the rectangle remains. Second click - the next page is actually activated. The pageframe is almost stripbare of code, there is a little innocent piece of code in the activate of each page.
>>What would you suggest to save a user a click?
>>Thank you.
>
>I can't reproduce the behavior.
>
>And this is odd: "the cursor goes to the first textbox and a recktangle appears around the page caption"
>
>It's looks like 2 objects have focus at the same time. Which makes me suspect some form of program induced pause is involved.
>
>I would make a copy of the form and keep removing method code until the problem disappears.

Thank you.
The thing was that i thought that page.activate only fires when the page just opens or it recieves focus from another form. After examination it looks like it fires every time the page caption recieves the focus no matter from where. So "a little innocent piece of code" in the activate event ran when i didn't need it.
All the best.
Kamil
A moment of silence is our cosmic reset button.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform