Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlling Focus
Message
De
30/09/1998 10:48:11
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
30/09/1998 10:39:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00142388
Message ID:
00142394
Vues:
30
>In an earlier message (thread # 139555) Edward Pikman suggested I could keep the focus within the current form of a formset by trapping for TAB, Enter, arrows, etc. in the keypress events of the first and last controls.
>
>While this works fine for most situations, I can't figure out how to influence the focus when the last control in the tab order is a text or edit box and the user fills up the preset length.
>
>This is what I've tried in the text box InteractiveChange event:
>
>IF LEN(TRIM(THIS.Value)) = 5 && the InputMask property is XXXXX
>THISFORM.cbNext.SetFocus
>ENDIF
>
>but it doesn't work.
>
>Any ideas ?
Instead isn't it easier moving THISFORM.cbNext.SetFocus to lostfocus of this. Or are you trying this control also lose focus when LEN(TRIM(THIS.text)) = len(this.inputmask) ?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform