Quantcast
Channel: Adobe Community : Discussion List - Illustrator Scripting
Viewing all articles
Browse latest Browse all 3671

How to set title for window at run-time for extension

$
0
0

Hi,

 

I am using the following JavaScript to modify the title for current extension dialog (Modeless dialog):

      var csInterface;

 

      $(function () {

            csInterface = new CSInterface();

            csInterface.addEventListener(Events.Products.ImageBind, init);

      });

 

      function init(event) {

            csInterface.setWindowTitle("Images");

      }

        

I also tried using "new CSInterface().setWindowTitle("Article");" in init() function instead of "csInterface.setWindowTitle("Images");". But title is not modified.

Please guide me on how to modify dialog title.

The manifest.xml file has the following definition for extension:

<Extension Id="com.adobe.illustrator.ImageUI.dialog">

      <DispatchInfo>

        <Resources>

          <MainPath>./html/image.html</MainPath>

          <ScriptPath>./js/main.jsx</ScriptPath>

          <CEFCommandLine/>

        </Resources>

        <Lifecycle>

          <AutoVisible>true</AutoVisible>

          <Visible>true</Visible>

        </Lifecycle>

        <UI>

          <Type>Modeless</Type>

          <Menu>title</Menu>

          <Geometry>

            <Size>

              <Height>400</Height>

              <Width>450</Width>

            </Size>

          </Geometry>

          <Icons/>

        </UI>

      </DispatchInfo>

    </Extension>

 

Thank you


Viewing all articles
Browse latest Browse all 3671


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>