Ask help: Keep dialog box display in Macro

  • 1
  • Question
  • Updated 2 weeks ago
I'd like to display a dialog box while using macro. By default, if place OK and Cancel button on the dialog, once click any of the button, the macro will run and close the dialog.  If possibe to keep the dialog display unless I click "cancel" button?? I would like to rename the button to "Apply". Click Apply, the macro runs but the dialog still be there, then I can do anothor operation.

Would you please share me the idea regarding this topic in macro? Thanks!
Photo of Daping

Daping

  • 9 Posts
  • 0 Reply Likes

Posted 2 weeks ago

  • 1
Photo of Nick Duffill

Nick Duffill, Champion

  • 512 Posts
  • 170 Reply Likes
You need to use a "Dialog Function", which will be called for as long as the dialogue is open. You can then carry out commands and run things in the background while the dialogue is shown. The documentation gives a prototype for the Dialog Function.
Photo of Daping

Daping

  • 9 Posts
  • 0 Reply Likes
Hello, Nick. Thanks for your warm reply. But if possible to show some sample codes how to do it?.....