Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Knowing when a form has been clicked

Status
Not open for further replies.

bebbo

Programmer
Dec 5, 2000
621
0
0
GB
I have a program which is designed for touch screen computer. This program has a number of forms. These form have a different amount of controls. I need to know if the screen has been touched so I know if it has been left or not. At the moment I check for this in each click property. Obviously this is a pain as there could be a number of objects. Is there something return whenever the form/control is touched. If there is I could just check for this. Or does any one have any other suggestion?

thanks
 
If you set the Form's KeyPreview property to .T., you can use the Form's KeyPress() event to note it's been "touched".

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top