Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox setfocus needs to be unset
Message
De
28/01/2005 10:49:55
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Divers
Thread ID:
00981705
Message ID:
00981745
Vues:
69
>I guess THISFORM.ltextbox never gets set to .F.
>>
>> That doesn't work. I still can not get the focus off the textbox.
>>>Beth,
>>>
>>>You should issue NODEFAULT when you want to keep focus only.
>>>
IF THISFORM.ltextbox = .T.
>>>  THISFORM.textbox1.SETFOCUS()
>>>  NODEFAULT
>>>ENDIF
>>>THIS.VALUE = ""
>>>THISFORM.REFRESH()
>>>
Sergey, Beth

PMFJI

But, maybe on "thisform.refresh" she has any command that affect the correctly behavior..

On this case a RETURN will help
procedure ltextbox.valid
IF THISFORM.ltextbox
   NODEFAULT
   THISFORM.textbox1.SETFOCUS()
   return
ENDIF
THIS.VALUE = ""
THISFORM.REFRESH()
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform