OnRequestClose Event

<< Click to Display Table of Contents >>

Navigation:  Events Generated by the VCL >

OnRequestClose Event

Previous pageReturn to chapter overviewNext page

VPE requests confirmation from your application, if the preview can be closed.

OnRequestClose(

Sender: TVPEngine;

var CanClose: Boolean

)

Sender

the VPE object that fired the event

CanClose

is a return-parameter, i.e. you can assign it one of the following values to control the resulting action of VPE:

Value

Description

False

no, the preview may not be closed

True

Otherwise