运行上面程序后会显示如下提示框
DECL KrlMsgDlgSK_T softkey[7]
DECL KRLMSG_T MyMessage
DECL EKRLMsgType Type
DECL int result1
DECL KRLMSGOPT_T Myoptions1
DECL KRLMSGPAR_T Para[3]
DECL bool result
softkey[1] = {sk_type #value, sk_txt[] "Open"}
softkey[2] = {sk_type #value, sk_txt[] "Close"}
softkey[3] = {sk_type #value, sk_txt[] "Show"}
softkey[4] = {sk_type #value, sk_txt[] "Hide"}
softkey[5] = {sk_type #empty, sk_txt[] "Open1"}
softkey[6] = {sk_type #empty, sk_txt[] "Close1"}
softkey[7] = {sk_type #empty, sk_txt[] "Show1"}
MyMessage={modul[]"USER",Nr 103,msg_txt[]"MaxForceLimit"}
Myoptions1= {VL_STOP true, Clear_P_Reset true, Clear_P_SAW false, Log_to_DB false}
result1 = Set_KrlMsg(#NOTIFY, MyMessage, Para[ ], Myoptions1)
result1=SET_KRLDLG(MyMessage,Para[ ],softkey[ ], Myoptions1)
result = EXISTS_KRLDLG(result1, answer)
;result = Clear_KrlMsg(result1)
softkey 为定义按键的属性
![image.png](https://i-blog.csdnimg.cn/blog_migrate/1187f812d9770a1ce13f97e642aabccf.png)
MyMessage 为定义信息显示属性
![image.png](https://i-blog.csdnimg.cn/blog_migrate/974241f9d7fc1d96f5886aa21d1ab1c4.png)
![image.png](https://i-blog.csdnimg.cn/blog_migrate/791711ec42b8b21c38ea3da02b519c0e.png)
![image.png](https://i-blog.csdnimg.cn/blog_migrate/1fbe358bf49614f104b22628481280b2.png)
MyOptions1为通用信息提示选项的结构
set_KrlMsg为设置或生成一则对话
![image.png](https://i-blog.csdnimg.cn/blog_migrate/8fa3d13c78668eef81b46a877a3c66ff.png)
Set_KrlDlg为设置并检验一则对话
![image.png](https://i-blog.csdnimg.cn/blog_migrate/4042986f6722cc12342189dc43b9874d.png)
![image.png](https://i-blog.csdnimg.cn/blog_migrate/f79861458a88451dd62b73fa6abf13c8.png)
Exists_KrlDlg( )可检查一则特定的对话是否还存在。 即检查 该对话是否还在信息缓存器中。
![image.png](https://i-blog.csdnimg.cn/blog_migrate/5e4f3f3772c884f76ea18f5f131c5e8d.png)
Clear_KrlMsg删除一条信息提示
![image.png](https://i-blog.csdnimg.cn/blog_migrate/d3dda023a9b0abc307a6334aab92b7f3.png)
使用此指令后不会有按键弹窗;