Recent

Author Topic: Zip, tgz archive file selection dialog  (Read 2309 times)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Zip, tgz archive file selection dialog
« on: September 23, 2013, 08:29:45 am »
A file import program of mine currently handles regular files.

I'd like to support archive files like .zip and .tar.gz as well. For this, it would be nice to have some sort of file selection dialog that opens the archive, shows the files within, and lets the user select a file.

Do I need to reinvent the wheel or has this been done before ;)

Thanks
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1260
Re: Zip, tgz archive file selection dialog
« Reply #1 on: September 23, 2013, 08:38:33 am »
Ug.  I don't know of any direct Selection Dialog implementations, but I saw some File controls in a library somewhere (tree and listview).  Not using the fpzipper though, it was a third party library.  If you don't mind mixing your libraries you can use that library to create a file selection dialog.  If you're interested in going down this path, let me know and I'll dig through a browser history and find that library.

You know, I'm sure I stumbled across those controls while reading through the zip64 review discussion you started a week or two back...
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Zip, tgz archive file selection dialog
« Reply #2 on: September 23, 2013, 08:43:41 am »
Thanks, Mike.

I think I'd rather slap something together using TZipper and friends... so no need to go digging through your history.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018