Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » FileSel&FileList, Path » How to select a starting directory for the FileSel
Re: How to select a starting directory for the FileSel [message #2940 is a reply to message #2939] Mon, 01 May 2006 01:39 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1213
Registered: March 2006
Location: Italy
Senior Contributor
forlano wrote on Mon, 01 May 2006 01:30

Hello,

Each time I open a FileSel dialog it starts from the root of my PC. Instead I would like to set the directory from where to start. I used the method BaseDir, for example:
	fs.BaseDir("C:\\MyApps\\Vega2\\souceVega");

In this case it starts from C:\\MyApps\\Vega2\\souceVega but I cannot move back from that level because the button dirup is disabled!
So I tried
   fs.dirup.Enable(); //fs.dirup.Enable(true); 
   fs.BaseDir("C:\\MyApps\\Vega2\\souceVega");

with no success. Any idea?

Moreover I would like to get my application directory to supply to FileSel but how can I get it?
Luigi

I get the answer! here it is:

 	fs.dir <<= "C:\\MyApps\\Vega2\\souceVega";

So now remain the question about the application directory Smile
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: BrowseDirCtrl component
Next Topic: Get Files in a directory
Goto Forum:
  


Current Time: Thu Aug 07 14:15:10 CEST 2025

Total time taken to generate the page: 0.05248 seconds