<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="Verdana">If you're interested, here's one way to do
      this. I'm sure there's a more elegant way and this is probably a
      bit if a hack, but it does what I need right now.</font>
    <p>1. In. your framework's Document Type dialog, on the
      Author:Actions subtab, add an action to the framework, give it an
      ID and a Name.<br>
      2. In the Action dialog select this Operation:
      ro.sync.ecss.extensions.commons.operations.JSOperation<br>
      3. A 'script' argument will be added, leave the value empty.<br>
      4. Choose OK. (Leave the Document Type dialog up for now.)<br>
      5. Create a commons.js file in the root of your framework
      directory, with the following content ..</p>
    <p>    function doOperation(){<br>
              parentFrame = authorAccess.getParentFrame();<br>
              javax.swing.JOptionPane.showMessageDialog(parentFrame,
      "MESSAGE HERE");<br>
          }</p>
    <p>6. In the Document Type dialog, on the Author:Menu subtab, add
      your new action to your menu (assuming one exists).<br>
      7. Choose OK, then OK.</p>
    <p>Open a document in Author view that uses your framework. You
      should see the new menu item.</p>
    <p>Clearly, if you're already using the commons.js file for
      something else, you'll need to pass in some parameter and tweak
      the JS code .. but this is a start.  :-)<br>
    </p>
    <p>Cheers,</p>
    <p>Scott<br>
    </p>
    <pre class="moz-signature" cols="72">

</pre>
    <div class="moz-cite-prefix">On 6/12/24 1:32 PM, Scott Prentice
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:9323604e-9f69-4d1d-9243-c8e134084e16@leximation.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p><font face="Verdana">Hi,</font></p>
      <p><font face="Verdana">Is there a built-in method for creating an
          action (to call from a toolbar or menu) that displays a simple
          dialog that contains informational text? I'd like to have an
          "About" dialog that's associated with a framework. I assume I
          can do this by creating a custom class, but wanted to see if
          there was an OOB option for this.</font></p>
      <p><font face="Verdana">Thanks!</font></p>
      <p><font face="Verdana">Scott</font></p>
      <p><font face="Verdana"><br>
        </font></p>
      <p><font face="Verdana"><br>
        </font></p>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
    </blockquote>
  </body>
</html>