Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progression counter ? #2

Open
satsukiyatoshi opened this issue Nov 29, 2016 · 3 comments
Open

Progression counter ? #2

satsukiyatoshi opened this issue Nov 29, 2016 · 3 comments

Comments

@satsukiyatoshi
Copy link

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
Copy link
Owner

wqweto commented Nov 29, 2016

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

@satsukiyatoshi
Copy link
Author

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
Copy link
Owner

wqweto commented Nov 29, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants