PBPreviewDialogs. ----------- Author: Poul Bak Copyright © 1999-2001 : BakSoft-Denmark (Poul Bak). All rights reserved. http://home11.inet.tele.dk/BakSoft/ (Notice the capital letters!) Mailto: baksoft-denmark@dk2net.dk Component Version: 3.00.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. Version 3.00.00.00 does not use the registry - Windows NT/2000 safe. 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, Baksoft-Denmark have no rights to it. PBPreviewDialog is provided 'as-is' and Baksoft-Denmark 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. 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.