Skip to main content
Known Participant
August 29, 2017
Question

Dynamically Add Controls in ZXP and Resize the Dialog

  • August 29, 2017
  • 3 replies
  • 805 views

Dear Friends,

    I want to Add Number of Combobox in The Dialog(ZXP Extension in Illustrator CC 2017) Corresponding to  the Number  of Layers in the Current Document.

    Is it possible to Resize the dialog and add Number  of Combobox at Runtime.

    If possible please give your suggestion.

Thank You Friends,

Nathan.

This topic has been closed for replies.

3 replies

Ten A
Community Expert
Community Expert
December 5, 2017

Moved this discussion to the Extensions/AddOns Development forum.

dnyaneshlb
Known Participant
December 5, 2017

Hi,

See, if this can be useful.

Changing Extension Content Size

Changing modal and modeless extension content size is supported in all Adobe applications that support CEP. However, changing panel HTML extension size is not supported in Premiere Pro, Prelude and After Effects.

CSInterface.prototype.resizeContent = function(width, height)

CEP 6 HTML Extension Cookbook for CC 2015 · Adobe-CEP/CEP-Resources Wiki · GitHub

-Dnyanesh

Inspiring
August 30, 2017

You can add controls at runtime using javascript:

How to add html control dynamically using JavaScript (DOM) – Sohel's Blog

I don't think you can resize the dialog from code, the user would have to do that themselves.