Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListView - header's icon alignment
Message
De
31/08/2005 13:59:12
 
 
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:
01045596
Vues:
35
>>>>>Hi Herman,
>>>>>
>>>>>#DEFINE HTCDF_NOSELECTDIR 0x80000000
>>>>>#define OFN_EXPLORER      0x00080000     // new look commdlg
>>>>>
>>>>>Declare String CD_GetFile in HTWindow.dll ;
>>>>>	String cStartDir, String cStrFilter, Long hWndParent, ;
>>>>>	Long nPosition, Long nX, Long nY, ;
>>>>>	Long uFlags, Long uFlagsEx
>>>>>?CD_GetFile("c:\MMVisCollect","dat",0,0,0,0,0,HTCDF_NOSELECTDIR)
>>>>>
>>>>>Can we change window title and the Open button caption? Why the Open button is disabled? How then the user can select a file?
>>>>>
>>>>
>>>>Hi Naomi,
>>>>
>>>>Changing the window title is easy, as well as the 'Open' button. However changing the button text can only work for GetOpenFileName(). GetSaveFileName() require a lot more heavy work because it is changing interactively between "Save" & "Open" when the mouse is hovering within the listview.
>>>>
>>>>And because of that I have to disabled the 'Open' button. Because when the folder is selected in the listview, this button also functioning to open the folder. And I prefer not to interfere with this button. So, I'm not sure what to do. As I mentioned there is always a limitation somewhere <bg>
>>>>
>>>>To select a file, you can just click (double click) the filename in the listview.
>>>>
>>>>Upgrade:
>>>>Having said that, do you still want the ability to change the title and button text ?
>>>
>>>Yes, that would be nice.
>>
>>It's done! Please check the download area
>>
>>Regards
>
>Thanks a lot, I'll check it.

You're welcome :)
Herman
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform