Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListView - header's icon alignment
Message
De
31/08/2005 16:30:00
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01045162
Message ID:
01045679
Vues:
37

>>Yup, somehow I zipped the wrong file. I even missed two more files for the example. It's what I got when do things in rush . I'm sorry for that :-(
>>
>>The filter files doesn't work like VFP GetFile() but works as standard GetOpenFileName API, here is the filter example:
>>
>>#Define c0  chr(0)
>>
>>lc_Filter = ' All Files (*.*)' + c0 + '*.*' + c0 + ;
>>   ' Text Files(*.txt)' + c0 + '*.txt' + c0 + ;
>>   ' Batch Files (*.bat)' + c0 + '*.bat' + c0 + ;
>>   ' Bitmap Files (*.bmp, *.jpg)' + c0 + '*.bmp;*.jpg' + c0 + c0
>>
>>
>>Btw, I tested more on WinME & XP-SP2. I failed to reproduce what you see. Can you post that code ? Also you can see the full example in form "Frm_ComDialog".
>
>Should I get a new Download? I think the form complains about several files.

Yes, that's what I meant with missing some files :-(


>Bellow is my test code
>
>#DEFINE HTCDF_NOSELECTDIR 0x80000000
>#define OFN_EXPLORER      0x00080000     // new look commdlg
>#Define c0  chr(0)
>
>lc_Filter = 'All Files (*.*)' + c0 + '*.*' + c0 + ;
>   'Text Files(*.txt)' + c0 + '*.txt' + c0 + ;
>   'Batch Files (*.bat)' + c0 + '*.bat' + c0 + ;
>   'Bitmap Files (*.bmp, *.jpg)' + c0 + '*.bmp;*.jpg' + c0 + c0
>
>
>Declare String CD_GetFile in HTWindow ;
>   String cStartDir, String cStrFilter, Long hWndParent, ;
>   Long nPosition, Long nX, Long nY, ;
>   Long uFlags, Long uFlagsEx, ;
>   String cWndTitle, String cBtnCaption
>
>?CD_GetFile("c:\MMVisCollect",lc_Filter,0,0,0,0,0,HTCDF_NOSELECTDIR, "Select file","Select")
>
>
>The directory has several subdirectories. If I open any of them, I can not any longer return back to the starting point. Not sure, if it was intended.

I see that. The flag HTCDF_NOSELECTDIR is intended to prevent folder selection (don't use this flag to get the standard behavior). That means preventing any possibility to select any folder in anyway. However you can open it. Are you using "Enter" key or any other way? I just noticed now that "Enter" key is not handle properly

So don't download yet, is there anymore problem ? I'll collect all the problem first. And take a rest for a while then start to work on it again.
Herman
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform