On Sat, 13 Feb 2010, Vailton Renato wrote:

Hi!

> >  * harbour/contrib/hbwin/win_dlg.c
> >    + added WIN_GETOPENFILENAME( [...@]<nFlags>], [<cTitle>], ;
> >                                 [<cInitDir>], [<cDefExt>], ;
> >                                 [<acFilter>], [...@]<nFilterIndex>], ;
> >                                 [<nBufferSize>] )
> >      -> <cFilePath> | <cPath> + e"\0" + <cFile1> [ + e"\0" + <cFileN> ] | ""
> >    + added WIN_GETSAFEFILENAME( [...@]<nFlags>], [<cTitle>], ;
> >                                 [<cInitDir>], [<cDefExt>], ;
> >                                 [<acFilter>], [...@]<nFilterIndex>], ;
> >                                 [<nBufferSize>] )
> >      -> <cFilePath> | <cPath> + e"\0" + <cFile1> [ + e"\0" + <cFileN> ] | ""
> Great! Only one detail I noticed: the correct name of the function
> would WIN_GETSAVEFILENAME ()?

Ups, Thank you for the info. Fortunately it was only typo in ChangeLog
entry. I'll fix it in next commit. The real function name is of course
WIN_GETSAVEFILENAME():

   WIN_GETSAVEFILENAME( [...@]<nFlags>], [<cTitle>], ;
                        [<cInitDir>], [<cDefExt>], ;
                        [<acFilter>], [...@]<nFilterIndex>], ;
                        [<nBufferSize>] )
      -> <cFilePath> | <cPath> + e"\0" + <cFile1> [ + e"\0" + <cFileN> ] | ""

And a note about <acFilter>. It can be in one of the following forms:
1. raw like in C Get*FileName() functions:
   <cName1> + e"\0" + <cWild1> [ + e"\0" + <cNameN> + e"\0" + <cWildN> ]
   [ + e"\0" [ + e"\0" ] ]
2. array of wildcards:
   { <cWild1> [, <cWildN> ] }
3. array of arrays with names and wildcards:
   { { <cName1>, <cWild1> } [, { <cNameN>, <cWildN> } ] }
The default OFN flags are:
   OFN_EXPLORER | OFN_ALLOWMULTISELECT | OFN_HIDEREADONLY

I'll probably add support also for other standard dialogs.

BTW. Viktor I would like to add HWND handler as optional
1-st parameter to above functions but I think it should be
the same in all dialog functions so can I make the same with
WIN_PRINTDLGDC()?

best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to