Skip navigation
Currently Being Moderated

Our plugin UI is opening behind PS untabbed document window

May 13, 2013 2:00 PM

When Photoshop is set to not use tabbed windows, when our plugin UI opens up it opens BEHIND the PS document windows. This is even for a UI that is launched as a separate process.

 

Is there any way to work around this?

 
Replies
  • Currently Being Moderated
    May 13, 2013 2:10 PM   in reply to Shmoopie99

    PC/Mac?

    On PC chances are you are not parenting your dialog correctly - it must be parented off the main Photoshop application windiow.

     
    |
    Mark as:
  • Currently Being Moderated
    May 13, 2013 2:31 PM   in reply to Shmoopie99

    I'm not too clear as to what exactly you are trying to achieve. If you run, say, an automation plugin's GUI, it should be modal, in which case there is no advantage to have a separate process. If you are trying to create something semi-modal where the user can interact with Photoshop AND with your GUI simultaneously, the only official supported way to do it is to use CSXS and have your GUI in an extension panel. Everything else (i.e. some sort of fake semi-modal dialogs ran by a separate thread or another process) is a hack, they are explicitly unsupported by Adobe and will require tinkering with Photoshop's internal event look, explicit maintenance of Z-order, substituion of windows callbacks etc. While its doable, maintaining this sort of semi-modality is not a trivial task, it will likely to break from one release to another and you will be more or less on your own with it, since there is no simple solution for it.

    Just something to consider.

     
    |
    Mark as:
  • Currently Being Moderated
    May 13, 2013 7:41 PM   in reply to Shmoopie99

    Look at the SetWindowGroup function with the second parameter set to GetWindowGroupOfClass(kMovableModalWindowClass).

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points