PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: James Padgett on December 14, 2010, 06:22:19 AM

Title: FF_OpenFileDialog
Post by: James Padgett on December 14, 2010, 06:22:19 AM
Can you set FF_OpenFileDialog to show hidden files/folders?  I don't see a switch for it.
I can manually enter the folder and it show up, but I don't see how to have the dialog show hidden folders.
Title: Re: FF_OpenFileDialog
Post by: Eddy Van Esch on December 14, 2010, 06:38:00 AM
Does this work? (I did not try it)
Quote%OFN_FORCESHOWHIDDEN
      Windows 2000/XP: Forces the showing of system and hidden files, thus overriding the user setting to show or not
      show hidden files. However, a file that is marked both system and hidden is not shown

Kind regards
Title: Re: FF_OpenFileDialog
Post by: James Padgett on December 14, 2010, 07:25:22 AM
Nope didn't work..
Functions Lib shows these as allowable :
                 %OFN_ALLOWMULTISELECT   
                 %OFN_CREATEPROMPT   
                 %OFN_ENABLEHOOK   
                 %OFN_ENABLETEMPLATE   
                 %OFN_ENABLETEMPLATEHANDLE   
                 %OFN_EXPLORER   
                 %OFN_EXTENSIONDIFFERENT   
                 %OFN_FILEMUSTEXIST   
                 %OFN_HIDEREADONLY   
                 %OFN_LONGNAMES   
                 %OFN_NOCHANGEDIR   
                 %OFN_NODEREFERENCELINKS   
                 %OFN_NOLONGNAMES   
                 %OFN_NONETWORKBUTTON   
                 %OFN_NOREADONLYRETURN   
                 %OFN_NOTESTFILECREATE   
                 %OFN_NOVALIDATE   
                 %OFN_OVERWRITEPROMPT   
                 %OFN_PATHMUSTEXIST   
                 %OFN_READONLY   
                 %OFN_SHAREAWARE   
                 %OFN_SHOWHELP   

Title: Re: FF_OpenFileDialog
Post by: Eddy Van Esch on December 14, 2010, 07:53:41 AM
Well, don't let that stop you.
%OFN_FORCESHOWHIDDEN      = &H10000000
If FF does not define %OFN_FORCESHOWHIDDEN, you can define the constant yourself or you can use the value directly like this:

FF_OpenFileDialog( ByVal_hWnd_As_Long, ......,  %OFN_ALLOWMULTISELECT + &H10000000, ByVal_CenterFlag_As_Long )

Title: Re: FF_OpenFileDialog
Post by: James Padgett on December 14, 2010, 02:45:34 PM
Thats what I get for assuming :-)...

I'll try it when I get home..