NX二次开发-UFUN多按钮模态对话框UF_UI_message_dialog

 NX11+VS2013

 #include <uf.h>
#include <uf_ui.h> UF_initialize(); //多按钮模态对话框
int response = ;
char title_string[] = "这里是标题";
char *sMessages = "这里是提示内容";
UF_UI_MESSAGE_DIALOG_TYPE dialog_type = UF_UI_MESSAGE_ERROR;//对话框类型UF_UI_MESSAGE_ERROR,UF_UI_MESSAGE_WARNING,UF_UI_MESSAGE_INFORMATION,UF_UI_MESSAGE_QUESTION
UF_UI_message_buttons_s button;
button.button1 = true;//控制按钮的数量
button.button2 = true;
button.button3 = true;
button.label1 = "是";//按钮的名字
button.label2 = "否";
button.label3 = "取消";
button.response1 = ;//按钮的返回值
button.response2 = ;
button.response3 = ;
UF_UI_message_dialog(title_string, dialog_type, &sMessages, , , &button, &response);
switch (response)
{
case :uc1601(button.label1, ); break;//显示所选按钮的名字
case :uc1601(button.label2, ); break;
case :uc1601(button.label3, ); break;
default:uc1601("未知按钮", ); break;
} UF_terminate(); Caesar卢尚宇
2019年6月27日

NX二次开发-UFUN多按钮模态对话框UF_UI_message_dialog

上一篇:[BI项目记]-搭建代码管理环境之创建团队项目


下一篇:JavaScript 应用开发 #3:应用的主视图