Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Browse window & Control-Y
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00920191
Message ID:
00922172
Vues:
20
Hi Yuri,

Since i decide to use the delete marker, i only need ctrl+y now. below is the final code that i use, basically it is a wrapper around the browse call:

on key label CTRL+Y append blank
browse window wBrowse title [Quick Edit - Ctrl-Y to add record, Esc to close]
on key label CTRL+Y on key

Thanks,
David

>It depends. Probably you need to:
>
>set sysmenu to default
>
>Also you may add the piece like:
>
>.....
>ON KEY LABEL CTRL+T iont("T")
>ON KEY LABEL CTRL+Y iont("Y")
>......
>*---------------
>PROCEDURE iont
>LPARAMETERS _key
>LOCAL lccom
>IF NOT EMPTY(ALIAS())
>	DO case
>	CASE _key="T"
>		lccom=IIF(DELETED(),"recall", "delete")
>	CASE _key="Y"
>		lccom="append blank"
>	OTHERWISE
>		lccom=""
>	endcase
>	&lccom
>endif
>
>
>>I have a browse window (by running the BROWSE command) which allow adding and deleting of record using Control-Y and Control-T respectively when it is run in the IDE mode. But when I compiled the project into an EXE and run it, the browse window does not take Control-Y and Control-T any more.
>>
>>Any help appreciated in making the control keys work.
>>
>>Thanks,
>>David Fung
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform