Thread overview
OpenFileDialog and SaveFileDialog?
Mar 20, 2008
Plumm
Mar 20, 2008
Frank Benoit
Mar 28, 2008
Plumm
Mar 28, 2008
Frank Benoit
Apr 07, 2008
Plumm
March 20, 2008
Hello:

   I wonder if DWT offers anything likt eh OpenFileDialog and SaveFileDialog of Windows API ?

Thanks ^^
March 20, 2008
Plumm schrieb:
> Hello:
> 
>    I wonder if DWT offers anything likt eh OpenFileDialog and SaveFileDialog of Windows API ?
> 
> Thanks ^^

see
dwt.widget.FileDialog
dwt.widget.DirectoryDialog

in the ControlExample you can see how they work
March 28, 2008
Frank Benoit Wrote:
> Plumm schrieb:
> see
> dwt.widget.FileDialog
> dwt.widget.DirectoryDialog
> in the ControlExample you can see how they work
   Thanks, but I found the string returned isn't UTF-8 based, I am not sure what's its encoding, but when I set it to the TextBox, then the program crashed. I think it's either local Codepage or UTF-16, but how to convert the string to UTF-8 ?

March 28, 2008
Plumm schrieb:
> Frank Benoit Wrote:
>> Plumm schrieb:
>> see
>> dwt.widget.FileDialog
>> dwt.widget.DirectoryDialog
>> in the ControlExample you can see how they work
>    Thanks, but I found the string returned isn't UTF-8 based, I am not sure what's its encoding, but when I set it to the TextBox, then the program crashed. I think it's either local Codepage or UTF-16, but how to convert the string to UTF-8 ?
> 

It /should/ return utf8. So its probably a porting bug.
Which dialog do you use? Win/Linux?
April 07, 2008
Frank Benoit Wrote:

> Plumm schrieb:
> It /should/ return utf8. So its probably a porting bug.
> Which dialog do you use? Win/Linux?
   It's windows.