Loading ...
Sorry, an error occurred while loading the content.

Re: Adding tildes to characters in Wordperfect - solved

Expand Messages
  • John R
    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.
    Message 1 of 24 , Dec 18, 2012
    • 0 Attachment
      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.

      New Document
      ; some commands
      Save As Dialog
      If (NewDocumentFlag)
      ; if flag is true, the user must have canceled out of the dialog
      ; else macro can branch depending on contents of DocumentName
      End If

      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.

      John R.


      --- In wordperfectmac@yahoogroups.com, "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 wordperfectmac@yahoogroups.com, "John R" wrote:

      Macros don't function when dialog boxes are open, so that info is not available.

      John R.
    Your message has been successfully submitted and would be delivered to recipients shortly.