Skip to main content
Known Participant
August 4, 2016
Question

tIllustrator CS 6 allows to select items in other windows when a modal dialog is shown

  • August 4, 2016
  • 1 reply
  • 715 views

Dear Friends,

     I create a modal Dialog in  CS6 Plugin by using DialogBox() function of Windows.

     At the time of   dialog  is shown,Illustrator CS6 allows to  select  an item  from other windows (Menubar,Toolbox or other Panels).

     Please give your suggestion to solve this problem.

     Note:Parent window for my dialog is  the window retrieved by using  GetPlatformAppWindow() function.

    Thankyou friends

   Regards,

   Nathan.

This topic has been closed for replies.

1 reply

Inspiring
August 8, 2016

If you have a full version of Visual Studio, use the Spy tool to see which window is being returned by GetPlatformAppWindow. You probably need to use one of its parent windows. If you don't have the Spy tool, you could just use trial and error by calling GetParent on the returned window.

Known Participant
August 10, 2016

Dear LeoTaro,

  Thank you for the Suggestion,but still it does not working.

  If a document is opened the GetPlatformAppWindow() function returns the current document as Parent window otherwise it   returns  Adobe Illustrator  CS6 as parent window.

In the case  of a document is opened, I try to GetParent() of the window returned by GetPlatformAppWindow () then  GetParent returns NULL.

Note: The problem is CS6 allows to select a Panel Item when  a  Modal Dialog is Shown.

Please give your suggestion to solve this problem.

 

Thank you Friend.

        Nathan

Participant
August 10, 2016

Try the MessageBox function with GetPlatformAppWindow() as the parent. If that works, then there is something wrong with your dialog code. If that doesn't work either then you may be stuck.