pixio
New Member
Posts: 9
|
Post by pixio on Jan 21, 2008 18:06:45 GMT -5
Is there a way, when deleting a file, to suppress the confirmation? (I'll handle it myself)
When dealing with a large zip archive the confirmation can be delayed significantly if the file being deleted is towards the bottom of the list.
|
|
|
Post by Kevin on Jan 21, 2008 20:01:13 GMT -5
I don't believe VCLZip itself does any confirmation. VCLZip just calls the OnDeleteEntry event IF you define it. Unless I am not understanding your question quite right.
Kevin
|
|
pixio
New Member
Posts: 9
|
Post by pixio on Jan 21, 2008 20:09:55 GMT -5
When you delete a file, a confirmation message comes up and asks: 'Delete File <filename>?'
This appears to be part of the vcl code not the demo application that generates this confirmation message.
I want to be abel to control what the message says, and when it appears.
With a large zip file (1gb or greater) deletion takes a long time to process. And the message doesn't appear until it comes to the selected file. Which, if it is at the bottom of the list the progress bars are showing activity for a long time before the confirmation question appears.
|
|
pixio
New Member
Posts: 9
|
Post by pixio on Jan 21, 2008 20:33:11 GMT -5
I found the code in the OnDeleteEntry method as you pointed out.
if MessageDlg('Delete File ' + FName + '?', mtConfirmation, [mbYes, mbNo], 0) = mrYes then
Thanks
|
|
|
Post by Kevin on Jan 21, 2008 22:46:56 GMT -5
Just some related additional information: For those things that are not handled by a specific event like this one, take a look at OnHandleMessage in the help file. VCLZip has a default OnHandleMessage defined but if you define your own, you can capture and handle any of the other interactions with the GUI that VCLZip would otherwise handle.
Kevin
|
|