General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion Dialogs Requesting Author Input

  • andyleslie

    Dialogs Requesting Author Input

    Participants 0
    Replies 1
    Last Activity 9 years, 6 months ago


    How easy is it to write a macro to launch a pop up dialog requesting author input within XMetaL ?




    Derek Read

    Reply to: Dialogs Requesting Author Input

    The simplest would be a single line of code similar to the following example:

    [code]//Example showing how to obtain user input and store the
    //return value (what the user enters) in a JScript variable.
    //First argument is the display text (the “prompt”).
    //Second, and optional, argument is suggested text the user may opt to type over in the text area.
    var myVariable = Application.Prompt(“Enter some text”, “default text”);[/code]

    You can also launch a custom XFT dialog (XFT is XMetaL's own binary compiled version of a dialog, similar but not the same as those you might create using Visual Basic). These are designed using the XMetaL Forms Toolkit (form designer) that comes with XMetaL Developer. That APIs related to launching such a form are documented in the Programmers Guide and are CreateFormDlg() and DoModal().


  • You must be logged in to reply to this topic.

Lost Your Password?