Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Some GETFILE() replacement on steroids?
Message
From
18/11/2023 07:08:31
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
17/11/2023 17:08:57
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01687285
Message ID:
01687286
Views:
89
Likes (2)
>Hi everybody. Hope you're all well.
>
>I'm trying to "modernize" one application that I worked with 15 years ago, One of those "areas" that, I guess, need modernization of looks is the GETFILE() or GETDIR() dialogs, for example, I like a lot Windows 10's "select files/dirs" dialogs which have the search box on top, just like Windows Explorer, that is very useful to find quickly the file(s) I need to select. Currently VFP9 SP2's GETFILE() and GETDIR() do not have that feature.
>
>Is there any way to use those "modernized" Windows fin file/dir dialogs? Perhaps through Windows ApI or something like that?
>
>Have a nice weekend and TIA.
Hi Luis

My 0,02EUR cent:
Check ctl32 https://ctl32.blogspot.com/ , there is a ctl32_openfiledialog and a ctl32_safeiledialog to start with.

For all I remember one can mimic the openfildialog to getdir(), but somehow don't use it.

I have a slightly altered version of this, and use #DEFINE to redirect all my GETFILE() GETPIC() and PUTFILE() to it. Since this is all old stuff, you must check if the ctl32 stuff is compatible with the build in functions or not.

Lutz

Update: See https://doughennig.com/papers/Pub/ctl32.pdf

Updated update:
GetDir() is ctl32_folderbrowserdialog ...
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform