>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)