Skip to main content
Lion_J
Inspiring
July 9, 2008
Question

CS3 WIN> How to set starting directory in SDKFolderChooser() ?

  • July 9, 2008
  • 2 replies
  • 316 views
Hello?

I would like to choose folder.
But I don't know how to set start directory.

/////// sample source //////

SDKFolderChooser chooser = SDKFolderChooser();
chooser.SetTitle(PMString("select folder"));
chooser.ShowDialog();

if (chooser.IsChosen()) {
...
}
///////////////

Thank you.
This topic has been closed for replies.

2 replies

Lion_J
Lion_JAuthor
Inspiring
July 14, 2008
Thank you Jim.

Thank you very much.
Inspiring
July 12, 2008
byung-wan Jung,<br /><br />You can create a new version of the SDKFolderChooser::ShowDialog() method to get what you want. You will find the source code for SDKFolderChooser in the SDK. It's located in the following path:<br /><br /><ID CS3 SDK>/source/sdksamples/common/SDKFileHelper.cpp<br /><br />Create a new version of the SDKFolderChooser::ShowDialog() method, one where you can pass in a starting folder that can be passed into the DoDialog() call made inside the ShowDialog() method. In the current version, nil is being passed to DoDialog() for the starting folder location.<br /><br />I hope this helps!<br /><br />-- Jim