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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to simulate event?

Status
Not open for further replies.

mensud

Programmer
Jul 22, 2001
51
US
Hi everyone,

How could I simulate an event occuring.
In my app I need to trigger an event for one of controls.

Thanks
Mensud
 
What kind of "event"? In VFP 8.0 you can bind events to most anything. Perhaps with some additional information, someone can give a more definitve anser.

Rick
 
Well,
I have greed control containig one checkbox control. I want to be able to check/uncheck this checkbox by clicking on any field on greed, not only by clicking on check box.

I thought that it could be a little easier if I could use checkbox.click() event.
 
You don't need any special code or features for that, just add that method call to the click event in the other columns' click method. e.g. In ThisForm.grid1.column2.text1.click() put:
Code:
DODEFAULT()
ThisForm.grid1.column1.checkbox.click()
Rick

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top