Page 1 of 1

IGUIFileOpenDialog can`t find file in another driver

Posted: Tue Dec 15, 2009 7:22 am
by h++
I am using IGUIFileOpenDialog and it works well! But I found the IGUIFileOpenDialog seems can only find file in current disk driver. Hence how to change the working directory by code?

I found someones code like this:

env->addFileOpenDialog(L"Please select a model file to open");

IGUIFileOpenDialog* dialog =
(IGUIFileOpenDialog*)event.GUIEvent.Caller;
loadModel(core::stringc(dialog->getFilename()).c_str());

but I don`t know what dose it means?

Can somebody so a hand for me!

Posted: Tue Dec 15, 2009 7:49 am
by CuteAlien
You should be able to type the drive-letter in the editbox where it shows the path. FileOpen dialog is not yet that much advanced, but that should at least work.

Posted: Tue Dec 15, 2009 8:36 am
by h++
CuteAlien wrote:You should be able to type the drive-letter in the editbox where it shows the path.
Can you tell me further details

Posted: Tue Dec 15, 2009 10:30 am
by CuteAlien
h++ wrote:
CuteAlien wrote:You should be able to type the drive-letter in the editbox where it shows the path.
Can you tell me further details
Uhm... I don't think there is more to it. You type in the new driveletter (like "d:" and that's it.

Posted: Tue Dec 15, 2009 10:59 am
by JP
I made a much better fileopen (and save) dialog class in the code snippets forum which might be of use to you.

Posted: Wed Dec 16, 2009 3:28 am
by h++
Yet, Thank you!
But I wanted to let the window which can change disk when it arrived at the root directory.