www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - OpenFileDialog and SaveFileDialog?

reply Plumm <sailormo tpts6.seed.net.tw> writes:
Hello:

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

Thanks ^^
Mar 20 2008
parent reply Frank Benoit <keinfarbton googlemail.com> writes:
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
Mar 20 2008
parent reply Plumm <sailormoontw gmail.com> writes:
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 ?
Mar 27 2008
parent reply Frank Benoit <keinfarbton googlemail.com> writes:
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?
Mar 27 2008
parent Plumm <sailormoontw gmail.com> writes:
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.
Apr 06 2008