PBPreviewDialogs. ----------- Author: Poul Bak Copyright © 1999 - 2004 : Bak-O-Soft (Poul Bak). All rights reserved. http://bak-o-soft.dk/ Mailto:info@bak-o-soft.dk Component Version: 4.50.00.00 PBOpenPreviewDialog and PBSavePreviewDialog are FREEWARE Open/SaveDialog-components for Delphi 2.0 - 6.0. PBOpenPreviewDialog is OpenDialog with universal Preview (Preview of YOUR files). Automatic localization (language) of the dialogs captions, title and hints without external files - detected at runtime - follows the Windows-language. The main property is OnPreview where you can write code that displays YOUR file the way you want. Two propertys PreviewText (TRichEdit) and PreviewImage (TImage) makes it easy to preview any kind of file. PBOpenPreviewDialog can display preview for 'bmp, ico, wmf, emf, jpg, txt, ini, inf, bat, log, pas, dpr, dpk, rtf and wav'-files without writing any code. Users can click a 'Scale' or 'Wordwrap' button to display or hide scrollboxes. For registered filetypes that are not supported the filetype-descriptions are displayed. A Show-Preview button makes it possible to show or hide previews. Context-sensitive help is included. Legal stuff: ------------ PBPreviewDialog is Freeware. Use it any way, you like. There is no timelimit or 'nag-screens'. Applications developed using these components are yours alone, Bak-O-Soft has no rights to it. PBPreviewDialog is provided 'as-is' and Bak-O-Soft is under no circumstances responsible for any damage, what soever, that it might cause to anyone or anything. Installation: ------------- 1. Unzip all files to a folder of your choice. Note for Delphi 3/4: All forms are saved as text format. To convert them into Delphi 3/4 binary format: Open the folder where you have unzipped the files. Doubleclick 'Convert_Forms.bat'. Now the forms are in Delphi 3/4 format. When you later open the forms, Delphi might tell you that 'Property does not exist'. Just ignore. 2. Start Delphi (if you haven't done so). 3. Choose menu 'Component', 'Install Component...', browse to the folder that contains the unzipped files, choose 'PBPreview.pas' and open the file. Press 'Ok'. Press 'Yes' to confirm rebuild. PBOpenPreviewDialog and PBSavePreviewDialog are now Registered. Close the window (save the changes). Now you have a new Palette-page named 'PB' with the new components. Install context-sensitive help: ------------------------------- 1. Move or copy 'PBPreview.hlp' and 'PBPreview.cnt' to ..\Delphix\Help folder. 2. Doubleclick 'Delphix.cnt' and 'Microsoft Help Workshop' starts. Click 'Index Files', 'add'. Type 'PBOpenPreviewDialog' as Help title and 'PBPreview.hlp' as Help filename. Click 'Ok'. 3. Include 'PBPreview.cnt' on the main page (Insert above). 4. Exit 'Microsoft Help Workshop' and save the changes. Now you have full context-sensitive help for the PBOpenPreviewDialog and PBSavePreviewDialog components. -------------------------------- I have included a small demo: Demo.exe to show the basics. Load and run. Try browsing the 'Windows'-folder to see a lot of previews. If you find any bugs, have any great ideas or just a comment or question, feel free to e-mail.