RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Dialogs.TFileDialogShareViolationResponse Enumeration

TFileDialogShareViolationResponse indicates the application's response to a sharing violation during a file open or save for a TCustomFileDialog dialog. These are the same values as in the FDE_SHAREVIOLATION_RESPONSE enumerated type used in the Microsoft IFileDialogEvents::OnShareViolation method.

Pascal
TFileDialogShareViolationResponse = (
  fsrDefault = FDESVR_DEFAULT,
  fsrAccept = FDESVR_ACCEPT,
  fsrRefuse = FDESVR_REFUSE
);
C++
enum TFileDialogShareViolationResponse {
  fsrDefault = FDESVR_DEFAULT,
  fsrAccept = FDESVR_ACCEPT,
  fsrRefuse = FDESVR_REFUSE
};

Dialogs

The following table lists the possible values:

Value 
Meaning 
fsrDefault  
The application displays a dialog telling the user the file is in use allowing selection of another file.  
fsrAccept  
The application returns the file name.  
fsrRefuse  
The application does not return the file name.  

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!