Skip to main content
Participant
September 9, 2013
Question

can popup mfc dialog from plugin in PF_Cmd_DO_DIALOG?

  • September 9, 2013
  • 1 reply
  • 1633 views

how to popup mfc dialog from plugin in PF_Cmd_DO_DIALOG command?

there are too many parameter to adjust,

so what to use popup dialog to show the solo parameters.

is there any way?

This topic has been closed for replies.

1 reply

Community Expert
September 11, 2013

hi alexeange!

welcome to the forum, where's there's plenty of bad news from everyone!

actually it's not that difficult.

you can use whatever API you like to open a window. (as long as it's modal)

you can use MFC, QT, WinApi, or... anything really. the DO_DIALOG is just a call. nothing special about it.

what's the easiest way?

use javascript along with ExecuteScript().

the script text is internal to your plug-in and the user can't see it.

the following thread shows how to do that, and how to retreive results:

http://forums.adobe.com/message/3625857#3625857#3625857

TADA!

:-)

Legend
January 3, 2014

What if I wanted to display a web page in the popup window?  What would be the best cross-OS method to implement that?  I know that ExtendScript popups / dialogs do not allow for the display of HTML, so I don't think a simple script will do the trick.  Can you recommend a library for handling this that works on both windows and osx?

Community Expert
January 3, 2014

the easiest way to display a web page is not to open a window at all, but

rather ask the os to open the url in it's default browser.

windows:

http://stackoverflow.com/questions/153046/launch-web-page-from-my-application

mac:

http://stackoverflow.com/questions/4177744/c-osx-open-default-browser