Table of Contents

TIDESaveDialogEvent Type

Event type used to provide a custom file save dialog for script project files.

Remarks

TIDESaveDialogEvent can be used by programmer to provide a different dialog for saving script project files other than the standard one. The event is fired when the end-user chooses "Save file as..." or "Save project" options in the IDE. The type of file to be saved is passed in IDEFileType parameter. The name of the file to be saved is passed in AFileName parameter, and you must provide the name back to the parameter (in case end-user changes the name, for example). If end-user confirms the operation, ResultOk must receive true. Otherwise, ResultOk must receive false in order to inform the engine to abort the operation (as if the end-user pressed Cancel in the save dialog). Finally, Handled parameter must receive true. If Handled receives false, then the standard save dialog will be used.

Syntax

Unit: IDEMain