WFX: how to detect cancel button press

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Volker Bijewitz
Junior Member
Junior Member
Posts: 4
Joined: 2017-01-31, 13:28 UTC

WFX: how to detect cancel button press

Post by *Volker Bijewitz »

Hi,

I am working on a FS plugin for SVN repositories. I have got the following problem.

I copy a bunch of files with F5 to the local harddisk. All works perfect, files get copied with FsGetFile. But I have noticed that the cancel button press does not work while copying a bunch of files.

How it is possible to stop the running operation at this point? SVN is not very fast, so a operation may take hours.

All the Best,

Volker Bijewitz
CoolWater
Power Member
Power Member
Posts: 735
Joined: 2003-03-27, 16:33 UTC

Post by *CoolWater »

2Volker Bijewitz

Just check the return value of ProgressProc(). If return value != 0 then Cancel was pressed.

HTH
CoolWater
Volker Bijewitz
Junior Member
Junior Member
Posts: 4
Joined: 2017-01-31, 13:28 UTC

Post by *Volker Bijewitz »

Wow, thank you, this is quite easy! You've helped me much!
Post Reply