OSCommerce Product Manager

OSCommerce Product Manager for Windows
Tasklist

FS#169 - Image opening dialog (when uploading) should show preview.

Attached to Project: OSCommerce Product Manager
Opened by Mario A. Valdez-Ramirez (mvaldez) - Sunday, 13 February 2005, 22:41 GMT-6
Last edited by Mario A. Valdez-Ramirez (mvaldez) - Tuesday, 20 September 2005, 15:24 GMT-6
Task Type New feature
Category Backend / Core
Status Closed
Assigned To Mario A. Valdez-Ramirez (mvaldez)
Operating System All
Severity Medium
Priority Low
Reported Version any
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Currently, the open dialog for selecting the image to upload doesn't show any preview of the images. It would be nice an option to show it.

TOpenPictureDialog is not useful as it doesn't support PNG, TIFF, JPG, etc.
This task depends upon

Closed by  Mario A. Valdez-Ramirez (mvaldez)
Tuesday, 20 September 2005, 15:24 GMT-6
Reason for closing:  
Comment by Mario A. Valdez-Ramirez (mvaldez) - Monday, 19 September 2005, 15:38 GMT-6
Implemented.
Closing.

Comment by Mario A. Valdez-Ramirez (mvaldez) - Monday, 19 September 2005, 15:41 GMT-6

What we did:

As we already have the code to convert lot of formats to BMP, we just created a TBitmap descendant with a custom LoadFromFile procedure. Registered the file types with RegisterFileFormat and voila! It seems we only need the LoadFromFile for the OpenPictureDialog (TOpenPictureDialog) to display the preview.

Of course our method is a bit brute (the conversion from any to BMP is being done via a temporary file for legacy reasons).

Now if we only can find a way to disable/enable it easily.
Comment by Mario A. Valdez-Ramirez (mvaldez) - Tuesday, 20 September 2005, 15:24 GMT-6

We changed our approach a bit.
We have created a descendant of TOpenDialog just like TOpenPictureDialog with some changes.

Loading...