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 » Automagic default extension with multiple file types [FEATURE REQUEST]
Automagic default extension with multiple file types [FEATURE REQUEST] [message #13584] Tue, 15 January 2008 16:53 Go to next message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Hi Mirek,

I have a dialog that gets setup like this

FileSel dlg;
dlg.Type("ESRI Shape files","*.shp");
dlg.Type("Google Earth files","*.kml");

if(!dlg.ExecuteSaveAs("Export Lines"))
		return;
...


and I would like the dialog to set the default extension depending on the currently active file type. Is there already a way to do this please? Is it something you think would be good to add?

Cheers,

Nick


Re: Automagic default extension with multiple file types [FEATURE REQUEST] [message #13594 is a reply to message #13584] Wed, 16 January 2008 10:24 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13442
Registered: November 2005
Ultimate Member
Current version of FileSel does it based on file mask. In this case, it would use either ".shp" or ".kml".

Mirek
Re: Automagic default extension with multiple file types [FEATURE REQUEST] [message #13610 is a reply to message #13594] Wed, 16 January 2008 22:22 Go to previous message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Ah nice! Thanks.
Previous Topic: How to select Directory
Next Topic: how to GetCurrentDirectory? [SOLVED]+how to search example
Goto Forum:
  


Current Time: Thu Oct 28 01:32:28 CEST 2021

Total time taken to generate the page: 0.01028 seconds