Office allows to ask for preview in the file open dialog.
Is it possible from VIP common dialogs?
- Ferenc Nagy
- VIP Member
- Posts: 215
- Joined: 24 Apr 2007 12:26
Can I select a file with preview?
- Attachments
-
- Preview of files from MS Word
- preview.png (77.08 KiB) Viewed 6736 times
TIA, Regards,
Frank Nagy
Frank Nagy
- Thomas Linder Puls
- VIP Member
- Posts: 1424
- Joined: 28 Feb 2000 0:01
- Thomas Linder Puls
- VIP Member
- Posts: 1424
- Joined: 28 Feb 2000 0:01
Well, the editor example does it like this:
Whether there is preview or not is controlled by the user.
Code: Select all
predicates
onFileOpen : window::menuItemListener.
clauses
onFileOpen(_Source, _MenuTag):-
FileName = vpiCommonDialogs::getFileName("*.*",["All files","*.*"],"Open text file", [],"",_),
!,
_ = editorForm::display(This, FileName).
onFileOpen(_Source, _MenuTag).
Regards Thomas Linder Puls
PDC
PDC
- Ferenc Nagy
- VIP Member
- Posts: 215
- Joined: 24 Apr 2007 12:26
Windows 7 provides the preview button
Thomas,
Your code sample displays the Editor Package having its full power.
Windows 7 provides the preview button near to the upper right corner of the file selection dialog.
This button shows the preview - for certain kinds of files.
I beg your pardon for asking a question about a service of the operation system.
Your code sample displays the Editor Package having its full power.
Windows 7 provides the preview button near to the upper right corner of the file selection dialog.
This button shows the preview - for certain kinds of files.
I beg your pardon for asking a question about a service of the operation system.
- Attachments
-
- preview button.PNG (10.55 KiB) Viewed 6676 times
TIA, Regards,
Frank Nagy
Frank Nagy