Windows file & folder selector dialogs

Hello,

I'm looking for informations about the way to use the Windows file selector dialog and folder selector dialog in DesktopX scripts. Thx to give me ideas, tutorials or reference URLs, or exemples...

Thanks a lot.
6,151 views 8 replies
Reply #1 Top
Have you looked through the galleries to see if there is something similar?
Oftentimes tearing an existing gadget apart can be very instructive.

Telling us the end goal can sometimes make helping someone easier.

What languages are you most familiar with?
Reply #2 Top

We definitely would be interested in knowing what specifically you're looking to do.

When it comes to Common Dialogs in DesktopX and choosing a particular folder, I haven't done too much, but I can recommend for choosing files, the 'UserAccounts.CommonDialog' object has proven useful.

-Mike
[Stardock Support]

Reply #3 Top
I'm actually looking for widgets using such functionalities, but for the moment I've only found gadgets, where I can't have a look on the code.

The end goal is to have a selector dialog to let the user of a dock widget to configure certains paths and files, accessible by right clik popup menu. The menu is done, I only need the way to access those dialogs.

If someone have a widget (not an executable) doing this, please tell me its name.

What do mean about language? If it's the one I speak, I'm french, and if it's the one I use for scripting, it's vbScript...

Bye
Reply #4 Top

Though you may have found .exe files here, both Gadgets and widgets share this same extension. The only difference is, that with Widgets (while in DesktopX Builder mode), right click the system tray icon and then select 'Import'. Click on 'Browse' and you can then load in any (.exe) widgets.

If you're unable to find something, I'll see if I can throw together an example for you (as time permits, of course )

-Mike
[Stardock Support]

Reply #5 Top
I didn't know it was possible to import the .exe files like this...
I've tried, that's ok, I can access the object's scripts.

Thank's a lot...
Reply #6 Top

Excellent   It may not be immediately apparent, but when you hang out here, you can usually learn quite a lot (I still do).

If you have any other questions, please feel free to post.

-Mike
[Stardock Support]

Reply #7 Top
That's found ! Here's the code for anyone who need it...


file = System.FileOpenDialog("Select File", "", "", "All files|*.*",0)

folder = System.FolderDialog("", "", &H4000)


Maybe it'll be usefull to get infos on the flags used in FolderDialog.


Bye
Reply #8 Top
Here's the link to the DX USER'S GUIDE

And the Folder/File Dialog page with all the info on them-- LINK

Here's a widget I made that might help you in DXscripting. It keeps all the dx codes at your fingertips. DESKTOPX SCRIPT HELPER

Happy DXing!