wqweto / VszLib

7-zip VB6 Helper
GNU Lesser General Public License v3.0
42 stars 23 forks source link

Progression counter ? #2

Open satsukiyatoshi opened 7 years ago

satsukiyatoshi commented 7 years ago

First, thanks for this great vb code. I have a suggestion, when i need to deal with big archive (some Go) i have no idea of the unzip progression, plus the vb6 software freeze until the complete extraction.

So any way to add some progression counter of the extraction/compression ?

Thanks

wqweto commented 7 years ago

You can take a look at the Progress event and provide UI with current filename + percent complete.

satsukiyatoshi commented 7 years ago

Thanks ! have you any sample code, because when i do a big file extraction the vb6 exe doesn't seems to respond anymore until end of extraction.

wqweto commented 7 years ago

Yes, you would need to call DoEvents or spin the message pump any other way manually, so that first, UI refreshes, and second, user is able to press cancel button or similar to interrupt extraction. The UI intricacies are not taken care by the library at all.

Currently I don't have any complete sample handy, you'll need to read the source and figure it out somehow. For instance on FileIdx < 0 it seems the Progress event is reporting total extraction stats in Current and Total.