Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object only visible while F-key held down
Message
De
12/06/2002 07:54:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
12/06/2002 07:45:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00667279
Message ID:
00667282
Vues:
22
>Hi. VFP7 user. I am working on a screen for a retail sales floor. I would like to display a container that shows the wholesale cost of the item ONLY while the user has their finger depressing a function key. Release the key, container becomes invisible.
>I already know how to do all of the visible/invisible and container stuff, it's just programming the function key.
>
>Thanks, Randy

One possibility - I doubt whether it is the best one! - would be to use KeyPress() to detect when the key is pressed, and then activate a timer that checks twice a second whether the key is still pressed. You would also need CLEAR TYPEAHEAD at some moment.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform