Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
subject: Dialogs generated by Tool kit are automatically closed.
I am using Creo Parametric Release 4.0 and DatecodeM140
When developing the dialog function in Creo Toolkit, click the button, call the ProMacroLoad function, load the macro command, "~ Command `ProCmdEnvAnnotElemDisp` 1" to realize the display annotation function, but after the function is executed, the dialog box will be automatically closed. Is there any way to keep the dialog interface from being closed?
Translated with Google Translator by Hedy Jin on Jun 2nd, 2022
----------------------------------------------------------------------------------------
subject: Tool kit生成的对话框被自动关闭
I am using Creo Parametric Release 4.0 and DatecodeM140
在Creo Toolkit开发对话框功能时,点击按钮,调用ProMacroLoad函数,加载宏命令,"~ Command `ProCmdEnvAnnotElemDisp` 1",实现显示注解功能,但是执行完该函数后,对话框会被自动关闭掉,有没有什么方法可以保持对话框界面不被关闭掉?
Hi
If I understand correctly your Toolkit application creates a button. The action of the button is to run a Macro. Is that correct?
If yes, did you create the mapkey from the User Interface and were you able to run in interactively successfully?
Did this ever work or is this your first and only attempt at programming this application?
You should try a simple experiment - start 'Find' dialog (CTRL+F) and call your mapkey. Most likely, the active dialog box would close...
Generally, if you are calling mapkeys as dialog actions you would be better off to use asynchronous mode for pro/toolkit app.