Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to auto skip readonly=.t. column to the next
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01498612
Message ID:
01498621
Vues:
49
>>>hi all
>>>i've several readonly=.t. columns on my grid and i want to auto skip from readonly=.t. column to the next column while navigation or entering data how can i do this?
>>>TIA
>>
>>Assuming your columns are not movable, put appropriate code in the last non-readonly column's textbox KeyPress intercepting TAB
>hi Naomi
>columns are movable :( and should movable cause column orders are user preferred

If that's the case, the code becomes a bit more tricky (you will need to get a reference to next column and check if it's read only or not, etc.) but doable.

Or, I just thought of one idea - you can bindevent Keypress to form's method. Each textbox will determine if it's readonly or not and if it is, it will just do NODEFAULT and TAB, so it will be passed to the next column.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform