OSCommerce Product Manager for Windows
FS#169 - Image opening dialog (when uploading) should show preview.
Attached to Project:
OSCommerce Product Manager
Opened by Mario A. Valdez-Ramirez (mvaldez) - Monday, 14 February 2005, 04:41 GMT
Last edited by Mario A. Valdez-Ramirez (mvaldez) - Tuesday, 20 September 2005, 20:24 GMT
Opened by Mario A. Valdez-Ramirez (mvaldez) - Monday, 14 February 2005, 04:41 GMT
Last edited by Mario A. Valdez-Ramirez (mvaldez) - Tuesday, 20 September 2005, 20:24 GMT
|
DetailsCurrently, 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, 20:24 GMT
Reason for closing:
Tuesday, 20 September 2005, 20:24 GMT
Reason for closing:
Closing.
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.
We changed our approach a bit.
We have created a descendant of TOpenDialog just like TOpenPictureDialog with some changes.