[NX] secondary development of common standards for dialog

1. uc1601 single button Modal Dialog

 

 View Code

 Multi-modal dialog button 2.UF_UI_message_dialog

1  // from "ace _ Caspian" test source 
2  extern dllexport void ufusr ( char * param, int * the returnCode, int RLEN)
 . 3  {
 . 4      UF_initialize ();
 . 5      int Response = 0 ;
 . 6      char title_string [] = " Caspian ace _ " ;
 . 7      char * sMessages = " multi-modal dialog button " ;
 . 8      UF_UI_MESSAGE_DIALOG_TYPE DIALOG_TYPE = UF_UI_MESSAGE_QUESTION; //Dialog type UF_UI_MESSAGE_ERROR, UF_UI_MESSAGE_WARNING, UF_UI_MESSAGE_INFORMATION, UF_UI_MESSAGE_QUESTION 
. 9      UF_UI_message_buttons_s Button;
 10      button.button1 = to true ; // whether the display 
. 11      button.button2 = to true ;
 12 is      button.button3 = to true ;
 13 is      button.label1 = " yes " ; // button name 
14      button.label2 = " No " ;
 15      button.label3 = " cancel " ;
 16      button.response1 =1;//返回值
17     button.response2 = 2;
18     button.response3 = 3;
19     UF_UI_message_dialog(title_string, dialog_type, &sMessages, 1, 0, &button, &response);
20     switch (response)
21     {
22     case 1:
23         uc1601(button.label1, 1); break;
24     case 2:
25         uc1601(button.label2, 1); break;
26     case 3:
27         uc1601(button.label3, 1); break;
28     default:
29         uc1601("未知按钮", 1); break;
30     }
31     UF_terminate();
32 }
View Code

3.

 

Guess you like

Origin www.cnblogs.com/KMould/p/11965445.html