Re: Adding tildes to characters in Wordperfect - solved
- Interaction between macros and dialogs can be useful. There are a number of macro commands, e.g. Get Text, Get Number, Confirm, that feed info to your macro. With others, you can detect the user's choice and act accordingly, e.g.
; some commands
Save As Dialog
; if flag is true, the user must have canceled out of the dialog
; else macro can branch depending on contents of DocumentName
My Equation Manager makes use of the feature that if you make a new equation with a macro, the macro pauses as long as the new box is open. When you close the box, the macro resumes.
So the equation macro makes a table with non-printing borders, and opens the equation editor. When you're finished entering the equation and close the editor, the macro continues and puts the automatic equation number (and automatic chapter number, if you have set chapter numbers) to the right of the equation. These numbers update as you add, delete or move equations, or change chapter numbering.
But if you make a new graphic with a macro, the macro continues into the graphic editor. Same with a text box and user box.
--- In firstname.lastname@example.org, "em315" wrote:
Ah! I didn't know that! That means there's no need to set up a macro NOT to work in a dialog box! Apologies for wasting bandwidth on this one...
--- In email@example.com, "John R" wrote:
Macros don't function when dialog boxes are open, so that info is not available.