views:

522

answers:

2

I need to preview several CAD formats in the file open dialog box in Windows 7 / Vista. In the past I used a Delphi Preview Open Dialog and I could register and implement the CAD format that I had to preview. I have found some articles on how to create a preview handler in Vista, this is unfortunately not going to work for me. What I would like to know if there is a way that I can get hold of the IPreviewHandler interface of the dialog that I have created

+1  A: 

I've searched about these before, but I couldn't find exact solution.

I found that Microsoft offers the IFileDialogCustomize interface to modify new file dialogs for vista or later. According to this article, we can't add any custom controls like as XP or before, and the controls we can add are very limited as below.

The provided controls are:

* Menu
* Button
* Combo box
* Radio button list
* Check button (check box)
* Edit
* Separator
* Label

If there's no other interfaces provided from MS, we can't properly extend the file dialog.

I think the things we can provide at this time is:

  • open custom window on the side of the file dialog.

    Have you ever used IrfanView ? If you save image as png or jpeg format, IrfanView shows option setting window on the right side of the save dialog(below one is customized in traditional way, but perhaps we can do similar with new dialog). alt text

  • mimic new dialog using shell controls & some new custom controls

    It's probably not so good because perhaps we can't find enhanced tree control on the left side, but with rkSmartPath we can mimic new path bar as below. (I think it's great work!)

alt text

If someone implement mimic control of Windows 7's new place bar/tree using virtual tree view or something, we could provide good customized dialog. (even for XP users.)

# I think it's chance for component vendors to develop solution for this problem...

# It's a gift from Microsoft for you! :-)

benok
A: 

Hi,

Please try Dialog Workshop for VCL components at www.componentage.com. These dialog components allow you to dock your own VCL Form (your own Preview pane) to the right or bottom of the standard Open/Save dialog with minimal coding. Though new Vista-style dialogs are not supported yet, they will be available in one of the next builds. Also you can find many other unique features like OpenFile dialog with embedded MRU Files tab, disabling Delete/Rename operations, OK button's drop-down menu (like Office/VS.NET), etc.

Please visit our homepage for additional information.

Best regards,

Alex Petrov

ComponentAge Software

Alex Petrov