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!

Which even triggered when a datawindow is closed

Status
Not open for further replies.

vadnagra

Technical User
Oct 10, 2004
23
US
I have a datawindow and I am toggling between visible and invisible depending on some logic. I have now added the control menu to the datawindow, so that the user can click at the right top corner to close the datawindow itself. How can I sense when the user is closing the datawindow. Coding in the Destructor event of the datawindow did not help.
 
I found the answer to this...in case you want to know.

Add the pbm_syscommand event to the datawindow and check for commandtype message = 61536 (datawindow close). There are other commandtype values you can check for various other things.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top