Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving around in a grid
Message
De
06/01/2004 11:01:46
Walter Meester
HoogkarspelPays-Bas
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00864158
Message ID:
00864194
Vues:
15
Hi Yuri,


>Probably you are right. Though you need to evaluate the lastkey in any case and it seems to eliminate undesired results in lostfocus too.

You mean with LASTKEY(). I'm not sure, but I think this also has problems because the lostfocus might not be triggered by a keypress, but might be a result of a programatic SETFOCUS call or just by a mouseclick.

Walter,


>>Hi Yuri,
>>
>>>You could use appropriate KEYBOARD() command in the lostfocus of the column currentcontrol.
>>
>>I would not do that. This is giving undesired results in various scenario's, like just browsing through the grid with the arrows key or you clicking on another object when that column is active.
>>
>>A better solutions is just use the KEYPRESS event of the textbox (or other active object in the column) and capture the carriage return (CHR(13)) or TAB (CHR(9)) and only in these cases use the KEYBOARD '{DNARROW}' command.
>>
>>Walter,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform