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 |
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
|
|
|
Goto Forum:
Current Time: Mon Apr 29 04:49:43 CEST 2024
Total time taken to generate the page: 0.02304 seconds
|