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 » Button OK label in SaveAs dialog
Re: Button OK label in SaveAs dialog [message #8092 is a reply to message #8071] Tue, 06 February 2007 23:41 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks, applied, I have just simplified first one to:

void FileSel::FileUpdate() {
	if(mode == SELECTDIR) {
		ok.Enable(!IsNull(~dir));
		return;
	}
	bool b = list.IsCursor() || !String(file).IsEmpty();
	ok.Enable(b);
	if(mode != SAVEAS || list.IsCursor() && list[list.GetCursor()].isdir)
		ok.SetLabel(t_("Open"));
	else
		ok.SetLabel(t_("Save"));		
}


Mirek
 
Read Message
Read Message
Read Message
Previous Topic: Get Files in a directory
Next Topic: How to select Directory
Goto Forum:
  


Current Time: Sun Apr 28 10:06:14 CEST 2024

Total time taken to generate the page: 0.07613 seconds