Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird problem...
Message
De
05/10/2011 15:33:23
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01525574
Message ID:
01525673
Vues:
57
>Hi everybody,
>
>In a form with a TList on the left and a pageframe with many pages on the right I found the following unexplainable behavior:
>
>I expand the Tree view -> open Particular Production -> Shows page. Click on the Add Show button. I then click on the Cancel button in that page that brings me back to the selected Production. I again select Shows, press the Add Show button.
>
>My focus is now on the Description field but I can not type - nothing happens. However, if I move my cursor around and go back to this Description field, I can type now.
>
>The code in the Shows page Add Show button is this
>
>thisform.lAdding = .t.
>SELECT rsShows
>APPEND BLANK
>replace ProdID WITH thisform.ProductionSeriesTree.ItemValues(thisform.LastSelectedIndex,'ProdID').Value
>this.Parent.Parent.ActivePage = 4
>this.Parent.Parent.pagShowEdit.txtDescription.SetFocus()
>
>The Show Edit page has only this.Refresh in its Activate method.
>
>What will cause such behavior?
>
>Thanks in advance.

Seems like sometimes you have to setfocus() to a different control first and reset it to the control you want?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform