OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: Carsten on May 02, 2013, 03:20:51 PM

Title: Are File Dialog & File Explorer suitable for a "select folder" interface?
Post by: Carsten on May 02, 2013, 03:20:51 PM
Hello Forum,

Cannot praise OpenDCL enough for the lift in my ACAD applications.

Can somebody advice me, whether the File Dialog and File Explorer controls are the right path to follow to get a dialog for selection of a folder instead of a file?
If yes, then maybe also some hints to which properties/methods which will be the ones get me there.
If no, then suggestion to alternative for getting a "Select folder" dialog.

Thanks in advance
Carsten
Title: Re: Are File Dialog & File Explorer suitable for a "select folder" interface?
Post by: BazzaCAD on May 02, 2013, 03:46:07 PM
You could probably get something to work, but an easier way would be to use DosLib (http://www.en.na.mcneel.com/doslib.htm) dos_getdir function.
Title: Re: Are File Dialog & File Explorer suitable for a "select folder" interface?
Post by: owenwengerd on May 02, 2013, 07:05:11 PM
Assuming you want a modal dialog, I recommend using the (dcl_SelectFolder) (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Function/SelectFolder.htm) function.
Title: Re: Are File Dialog & File Explorer suitable for a "select folder" interface?
Post by: BazzaCAD on May 02, 2013, 07:56:30 PM
Oops I guess I've been out of it for too long. :)
Title: Re: Are File Dialog & File Explorer suitable for a "select folder" interface?
Post by: Carsten on May 03, 2013, 01:15:54 PM
Thanks for useful response, this is exactly what I was looking for, and simple to use.

wish you a good weekend
Carsten