The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Unit: SDL_filesys
Class: TUnivSaveDialog
Declaration: property OnForbiddenDir: TOnForbiddenDirEvent;
{TOnForbiddenDirEvent = procedure (Sender: TObject; Path: string; var ForbiddenDirEventReply: TModalResult) of object;}

The OnForbiddenDir event is triggered if the user tries to store a file in the forbidden directory or a subdirectory of it. The parameter Path contains the full path of the forbidden directory. The variable parameter ForbiddenDirReply has to be set to one of the following values: mrYes, mrNo, or mrCancel. Any other value will raise an exception.

Hint: Please note that if OnForbiddenDir always has no event handler assigned TUnivSaveDialog does not test for any forbidden directory.

Last Update: 2015-Feb-02