UG\NX secondary development non-modal message dialog function UF_UI_display_nonmodal_msg

Author of the article: Caspian
Source Website: https://blog.csdn.net/WangPaiFeiXingYuan


Introduction:

        The uc1601 function provides a modal message dialog box, and there is also a non-modal message dialog box in the ufun function. A window pops up once it is run, and it will not disappear if you do not click OK. After the dialog box is displayed, it will not affect the operation of other commands.

        The second parameter of UF_UI_display_nonmodal_msg:

UF_UI_MSG_POS_CURSOR  对话框的OK按钮将在鼠标光标的下方。 
UF_UI_MSG_POS_CASCADE  相对于其他非模态消息对话框,对话框将被放置在屏幕的对角线上。
UF_UI_MSG_POS_BOTTOM_RIGHT  对话框将被定位在图形窗口的右下角。  
UF_UI_MSG_POS_TOP_LEFT  对话框将位于屏幕的左上角。 

Effect:

      

code:

extern DllExport void ufusr(char *param, int *returnCode, int rlen)
{
 

Guess you like

Origin blog.csdn.net/WangPaiFeiXingYuan/article/details/130028461