Page 1 of 1

Packer 2004

Posted: Fri Dec 17, 2004 11:22 am
by cabaptista
Packer 2004 is a program to manage ZIP files.

With Packer 2004 you can create, open, close, copy, move, delete and rename a ZIP packer and see it's properties.
Also you can add a directory, add files and much more.

Thanks to Spangly/Notandor and it´s "PBZIP".

A note: this program only compiles with purebasic version 3.90.

Download it in here:
http://sapp.telepac.pt/cesar-baptista/PureBasic/Packer 2004.zip

As always, source code is included.
Try it and write about it.

Thanks in advance.

Posted: Fri Dec 17, 2004 2:35 pm
by Num3
Good show :D

Just a bug, resizing with max button, drops the listview lose it's size...

Posted: Fri Dec 17, 2004 3:25 pm
by cabaptista
Num3, you are right. It's a bug.
But I don't know how to solve it.

The bug has to do with opening other windows over the main window and then try to maximize or minimize the main window.

I have the next code in #PB_Event_SizeWindow:

Case #PB_EventSizeWindow
ResizeGadget(#MAIN_LISTICON, 0, 24, WindowWidth(), WindowHeight() -60)

but still don't work.
Can anybody help me ?

Posted: Fri Dec 17, 2004 3:30 pm
by cabaptista
It's a bug in WindowWidth() and WindowHeight() i think.

When i close one window above the main window,

CloseWindow(#OTHER_WINDOW)

and activate the main window,

ActivateWindow()

Somehow the WindowWidth() and WindowHeight() go crazy and don't give me the right values.

Posted: Fri Dec 17, 2004 5:24 pm
by Fred
Just use UseWindow() before WindowWidth()/Height() and it should work.

Posted: Fri Dec 17, 2004 5:41 pm
by cabaptista
Thanks Fred, it works.

Posted: Fri Dec 17, 2004 7:01 pm
by Flype
XP SP2 doesn't want to open the zip archive of your program.
saying me that there could be a virus mail inside... :?

Posted: Fri Dec 17, 2004 7:57 pm
by Num3
It because the stored path inside the zip is:

f:\cabaptista\programming\ .. \ ..

eheh... didn't even know zip's could store drive letters in the path !