OnDestroyWindow Event

<< Click to Display Table of Contents >>

Navigation:  Events Generated by the VCL >

OnDestroyWindow Event

Previous pageReturn to chapter overviewNext page

Is fired when the preview window was destroyed - for example closed by the user - and AutoDelete is True (the default). The document is also closed (removed from memory).

OnDestroyWindow(

Sender: TVPEngine

)

Sender

the VPE object that fired the event

Remarks:

Do not call any VPE method or property when processing this event. The document is already closed and not accessible.

 

This event is fired, if AutoDelete is True and the user closes the preview. Otherwise the event OnCloseWindow is fired.