Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hor to get full contgrol over dialog window 'getfile' 2

Status
Not open for further replies.

Nifrabar

Programmer
Mar 16, 2003
1,343
NL
Hi!
Don't know if it's possible but maybe an API can do the job. I am using the normal getfile function from VFP to let user choose a file.
Now they are asking:
- Can the size of that window be programmaticly changed
- Can the way files are presented set to 'details'
- Can the order of the items be set to 'modified'
TIA
-Bart
 
Nifrabar (Programmer)
11 Jan 09 13:54

Stfaprc,
As far as known they are all using XP-home.
Is important to know?
-Bart

As others have mentioned in passing, your flavor of Operating System can make a difference when doing manipulations of the dialog box. I'm pretty sure that even in msVistaBasic that the WSH SendKeys is disabled. There may also be differences in where the tabs will land you based on the OS in use.

I think it would be better to come up with your own FilePicker that would allow the users to customize to their choice. you would also be able to save the 'Last State' upon each use of the FilePicker.
 
Stfaprc,

Agreed that different OS might interfere with the manipulating of file-dialog by using sendkeys.
I need this alteration to make life of my users easier.
So I will use the OS() function to only make this available for XP and 'lower' users as I don't know how to create a custom file-picker. Do you?

-Bart
 
I don't know how to create a custom file-picker.

I think what Stfaprc had in mind is to create your own form, with a listview and other controls, to mimic the Windows File Open dialogue. It should be perfectly possible, but it would be quite a lot of work. To do it properly, you'd have to allow the user to browse the entire file system, including removable drives and network places, not to mention the special folders and so on. Plus, filtering on file type, etc.

Using a listbox with RowSourceType set to 7 would make things easier, but it wouldn't look anything like the official File Open dialogue.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Mike,
Thanks for your (as usual) helpfull comments on this. Creating this would be a challenge! But for this moment not highest priorety.

I presume we can close this thread now.
-Bart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top