. 1 NX11 + VS2013 2 . 3 . 4 #include <uf.h> . 5 #include <uf_ui.h> . 6 . 7 . 8 UF_initialize (); . 9 10 // multiple selection menu dialog . 11 char sPromptStr [] = " multiple-choice menu, dialog " ; 12 is char asOptions [] [ 38 is ] = { " menu option 1 " , " menu option 2 " , " menu option. 3 " }; 13 is int iNumOfOptions = . 3 ; // a maximum of 14 menu option 14 int aiResponse[14]; 15 uc1605(sPromptStr, 0, asOptions, iNumOfOptions, aiResponse); 16 if (aiResponse[0] == 1 && aiResponse[1] == 0 && aiResponse[2] == 0) 17 { 18 uc1601("按钮1", 1); 19 } 20 if (aiResponse[0] == 0 && aiResponse[1] == 1 && aiResponse[2] == 0) 21 { 22 uc1601("按钮2", 1); 23 } 24 if (aiResponse[0] == 0 && aiResponse[1] == 0 && aiResponse[2] == 1) 25 { 26 uc1601("按钮3", 1); 27 } 28 29 UF_terminate(); 30 31 Caesar卢尚宇 32 June 27, 2019
NX Second Development -UFUN multiple-choice menu dialog uc1605
Guess you like
Origin www.cnblogs.com/nxopen2018/p/11099385.html
Ranking