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
How to select a starting directory for the FileSel [message #2939] Mon, 01 May 2006 01:30 Go to next message
forlano is currently offline  forlano
Messages: 1182
Registered: March 2006
Location: Italy
Senior Contributor
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
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 next message
forlano is currently offline  forlano
Messages: 1182
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
Re: How to select a starting directory for the FileSel [message #5954 is a reply to message #2940] Wed, 25 October 2006 19:08 Go to previous messageGo to next message
yeohhs
Messages: 75
Registered: November 2005
Location: Malaysia
Member
forlano wrote on Mon, 01 May 2006 07:39

So now remain the question about the application directory Smile



Hello,

Have you tried this?
fs.ActiveDir(".");  


Best Regards,
Yeoh
Re: How to select a starting directory for the FileSel [message #5956 is a reply to message #5954] Wed, 25 October 2006 22:14 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1182
Registered: March 2006
Location: Italy
Senior Contributor
yeohhs wrote on Wed, 25 October 2006 19:08

forlano wrote on Mon, 01 May 2006 07:39

So now remain the question about the application directory Smile



Hello,

Have you tried this?
fs.ActiveDir(".");  


Best Regards,
Yeoh


Hi Yeoh,

No, but I'll try. The surprise never finish Smile
Thanks!
Luigi
Re: How to select a starting directory for the FileSel [message #5962 is a reply to message #2939] Thu, 26 October 2006 01:17 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
ActiveDir. But ActiveDir(".") is wrong, you should supply the real directory there, e.g. ActiveDir(GetCurrrentDirectory()).

Mirek
Re: How to select a starting directory for the FileSel [message #5969 is a reply to message #2939] Thu, 26 October 2006 02:02 Go to previous message
yeohhs
Messages: 75
Registered: November 2005
Location: Malaysia
Member
Thanks. Smile
Previous Topic: BrowseDirCtrl component
Next Topic: Get Files in a directory
Goto Forum:
  


Current Time: Thu Mar 28 12:14:56 CET 2024

Total time taken to generate the page: 0.01131 seconds