Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setfocus() not setting focus correctly
Message
De
27/01/2005 15:34:40
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Setfocus() not setting focus correctly
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
00981445
Message ID:
00981445
Vues:
60
Hi, All

I have a form that contains the textbox - textbox1. In the lostfocus method, I have this code:
local llok, lctext
lctext = alltrim(this.value)
thisform.moverlists1.lstSelected.ADDITEM(lctext)
thisform.textbox1.setfocus()
this.value = ""
thisform.refresh()
*!*	thisform.textbox1.setfocus()
I had the setfocus after the this.value = "" and the textbox is not getting the focus.
Yes, I am aware that at this moment, the user would never be able to get out of the box. I will fix that somehow. But I need the focus to go to the textbox and show a cursor until the user pushes one of two buttons.

Thanks for your help.
Beth
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform