Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListView - header's icon alignment
Message
 
 
To
31/08/2005 13:23:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01045162
Message ID:
01045586
Views:
30
>>>>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.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform