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 » U++ Widgets - General questions or Mixed problems » Dialog returned values
Dialog returned values [message #2448] Thu, 13 April 2006 07:17 Go to previous message
kevinle10@gmail.com is currently offline  kevinle10@gmail.com
Messages: 25
Registered: April 2006
Promising Member
I have a dialog with three buttons : "Overwrite", "Append" and "Cancel". The code to invoke the dlg is as follow:

ConfirmOverwriteDlg confirmDlg;
int dlgId = confirmDlg.Execute();
switch (dlgId) {
case 100:
PromptOK("Overwrite");
break;  
case 101:
PromptOK("Append");	
break;
default:
PromptOK("Cancel");
}


100 and 101 are assigned to the "Overwrite" and "Append" buttons in the lay file respectively. But the above does not work. How do I wire the button to the ID? Thanks
 
Read Message
Read Message
Previous Topic: TreeCtrl and ArrayCtrl - how to invoke editor for individual items? [SOLVED...]
Next Topic: Overwrite PromptOKCancel
Goto Forum:
  


Current Time: Mon Apr 29 04:49:43 CEST 2024

Total time taken to generate the page: 0.02304 seconds