Walter Meester
HoogkarspelPays-Bas
Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement