getpict() /explorer defaults

Using XP & VFP9 < xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

When I issue fn=getpict(),

How do I force the explorer window to sort by file name and display thumbnails.

I have set remember each folders settings in Folder Options, Explorer always displays the directory properly,

But I can not get  getpict to sort on file name.

 It would be nice if I could set the default directory to open also.




Answer this question

getpict() /explorer defaults

  • Schakal

    >> We are still not clear how to set the sort order (sort by filename).- does that follow the explorer window options

    Sorry, but I simply don't know. I don't think you CAN set the defaults explicitly (at least, I don't know of any way to do this). I would assume that it follows the windows setting, but I suspect it is just hard-coded (like so much of the native windows stuff).



  • Pinball

    We are still not clear how to set the sort order (sort by filename).- does that follow the explorer window options

    Does anybody know  What hidden windows file contains the display options for each folder



  • jim3891

    Hi Gary,

    I'm sure the options are stored in the Registry on a User basis. In any case I've never found the Explorer Tools > Folder Options > View > Apply to All Folders settings to be very persistent.

    The user can always use the View button (last on the right beside the Look In box) or Right-click to choose how the items are viewed. That's not nearly as nice for the user as everything coming up the way you want to see it though.

    There may be a way of opening the File > Open dialog using Windows scripting that would allow you to specify these settings. I'd ask in a forum relative to Windows and then try to adapt the answer to FoxPro.

     



  • martin_d

    You can set the folder before hand. You can save the current dir (FULLPATH(CurDir()) to a memvar or an object property and restore it later.

    Cd "C:\Documents and Settings\<your user name>\My Documents\My Pictures"

    GetPict()

     

    From the help file:

    "You can preview images in Windows 2000 and later by clicking the View Menu icon and then Thumbnails. Visual FoxPro uses the Thumbnails view as the default setting to provide mini-previews of images. Therefore, the Open Picture dialog box no longer includes a frame for displaying an image."

    It works for me as advertised in VFP 9.0 SP1 and XP.


  • getpict() /explorer defaults