U++ framework
Do not panic. Ask here before giving up.

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: 14291
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: Tue Jun 23 01:04:07 GMT+2 2026

Total time taken to generate the page: 0.00545 seconds