[AI-CS5] Unable to capture panel closed/Hide event .

Hi All,
I am using  flex for  my illustrator plug-in panel. I want to show a msg if panel is closed.
I registered  StateChangeEvent.WINDOW_CLOSE /StateChangeEvent.WINDOW_HIDE in PanelInit() but I am unable to get the call.
here is the code that i am using to register.
CSXSInterface.getInstance().addEventListener(StateChangeEvent.WINDOW_CLOSE , PanelClose);
CSXSInterface.getInstance().addEventListener(StateChangeEvent.WINDOW_HIDE , PanelHide);
however in case of StateChangeEvent.WINDOW_CLOSE I am getting call only if illustrator is being closed and panel is opened.
plz suggest how to overcome?
thanks
R.

I believe this is a bug in Illustrator CS5. Because panels are only hidden (rather than truly closed) when the user clicks to close them, the close event does not fire. I think this is unique to Illustrator and it should be fixed for CS6.
In the meantime there is this slightly ugly workaround, where you can set up a timer to intermittently poll the visible property of a window, which accurately reflects whether the panel window is visible (unlike the closed property, which as you have noted remains 'false' until Illustrator itself is closing).
<csxs:CSXSWindowedApplication
     xmlns:mx="http://www.adobe.com/2006/mxml"
     xmlns:csxs="com.adobe.csxs.core.*"
     layout="absolute"
     historyManagementEnabled="false"
     creationComplete="onCreationComplete()"
     >
     <mx:Script>
          <![CDATA[
               protected function onCreationComplete():void
                    var t:Timer = new Timer(3000);
                    t.addEventListener(TimerEvent.TIMER, onTimerEvent);
                    t.start();
               protected function onTimerEvent(event:TimerEvent):void
                    trace("visible: " + visible);
                    trace("closed: " + closed);
          ]]>
     </mx:Script>
</csxs:CSXSWindowedApplication>

Similar Messages

  • Unable to capture startup and shutdown event of Photoshop in automation Plugin.

    Hi,
    I am creating an automation plugin and I want to register some events. I have seen listener plugin sample to register event in startup and unregister event in shutdown. I have used same code in my plugin but I am unable to capture the startup nad shutdown event of Photoshop. On clicking the menu item of my plugin the calls come inside the AutoPluginMain but during the startup or shutdown of plugin, the calls does not come inside the AutoPluginMain.
    I am unable to detect the cause of the problem. Can someone please giude me??
    Thanks in advance.

    Hi Tom,
    Thanks for the suggestion.
    Yes, I am working on Windows. As you suggested, I compiled .rc file but the compile option for .r file was disabled. After compiling the .rc file, I again rebuild the complete project and tested my build. But still I was not able to achive the desired result.
    Any other thing that I need to do to make it work?
    Thanks

  • Unable to capture Exchange Mailbox Auditing events for email creation

    We are looking to capture Owner mailbox auditing events using the native Exchange 2013 auditing tools (Search-MailboxAuditLog). I have auditing enabled with all actions for Owner, and capture items performed via Outlook, except for new emails created.
    If I create new emails via OWA, I am able to capture the event, but as soon as I go back to Outlook and create a new message, I don’t see anything audited. I also tried this is our Dev environment and seeing the same behavior. Has anyone else experience this
    behavior?

    Hi,
    I have a test in my environment. If I create a message on Outlook as a owner, the mailbox audit logging can't record it.
    If I create a message on Outlook as a delegate, when using the Search-MailboxAuditLog cmdlet to search the audit log, it will be displayed as follows:
    The operation is "SendAs", not "Create".
    Hope this can be helpful to you.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Amy Wang
    TechNet Community Support

  • Unable to capture the submit button event in OAF

    Hi
    I am facing a problem extending the NavigationCO controller on "/oracle/apps/per/selfservice/review/webui/ReviewPG". I just want to throw some exception when the user clicks the submit button in the PFR. I have used the following code but i did not find any solution. Can anyone help me out in this issue. When i used the first method its displaying some error on submitting the page but where as in the second method its commiting the data instead of throwing an exception.
    I tried the following methods:
    public class XXXNavigationCO extends NavigationCO {
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    if (pageContext.getParameter("HrSubmit") != null)
    super.processFormRequest(pageContext, webBean);
    pageContext.forwardImmediatelyToCurrentPage(null,true, "Y");
    throw new OAException("Test Message");
    else{
    super.processFormRequest(pageContext, webBean);
    2.
    public class XXXNavigationCO extends NavigationCO {
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    if ("HrSubmit".equals(pageContext.getParameter(EVENT_PARAM)))
    throw new OAException("gsgfshghjgashfa");
    super.processFormRequest(pageContext, webBean);
    }

    Hi Gaurav,
    Thanks for the repsonse. I tried the same code but its not throwing the exception its directly launching me the confirmation page. Actaully the controller is redirecting to confirmation page on submit. But now i want to check some condition on submit and throw an exception if the condition is not satisfied. If the condition is satisfied i want the seeded controller action to take place.
    I tried using "pageContext.forwardImmediatelyToCurrentPage" and "pageContext.forwardURLToCurrentPage" but i did not achieve success in it.
    If the above mentioned "pageContext.forwardURLToCurrentPage" is right could you please give me an example to get thjis resolved.

  • Unable to capture the adf table column sort icons using open script tool

    Hi All,
    I am new to OATS and I am trying to create script for testing ADF application using open script tool. I face issues in recording two events.
    1. I am unable to record the event of clicking adf table column sort icons that exist on the column header. I tried to use the capture tool, but that couldn't help me.
    2. The second issue is I am unable to capture the panel header text. The component can be identified but I was not able to identify the supporting attribute for the header text.

    Hi keerthi,
    1. I have pasted the code for the first issue
    web
                             .button(
                                       122,
                                       "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1824fhkchs_6']/web:form[@id='pt1:_UISform1' or @name='pt1:_UISform1' or @index='0']/web:button[@id='pt1:MA:0:n1:1:pt1:qryId1::search' or @value='Search' or @index='3']")
                             .click();
                        adf
                        .table(
                                  "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1c9nk1ryzv_6']/web:ADFTable[@absoluteLocator='pt1:MA:n1:pt1:pnlcltn:resId1']")
                        .columnSort("Ascending", "Name" );
         }

  • Unable to capture in FCP, Quicktime and iMovie, camera not recognized.

    I am unable to capture in FCP, Quicktime and iMovie.
    I have been dealing with this problem for quite a while now, and I think I have tried everything posted on these forums regarding this issue. I have been to the Quicktime, iMovie, and this FCP forum looking for the solution. Hopefully someone has a suggestion that I have missed or have not tried yet. I have a Powerbook G4 running OSX Tiger 10.4. I am running Quicktime 7.04, and FCP 4.5.
    My problem is this… I am unable to capture from my Canon ZR-200 Mini DV camera, using Final Cut Pro, iMovie and also Quicktime. FCP says no camera recognized. iMovie says no camera attached, and Quicktime says no recording device found. In FCP, I am using the Firewire Basic setting, and NTSC DV settings. I have captured in FCP with the same camera several times in the past. I think the problem started when I upgraded to OSX 10.4, or one of the Quicktime upgrades.
    Here are the details…
    - Camera is connect via Firewire. I have tried the built in ports, as well as a Firewire Carbus card.
    - OSX recognizes the Canon ZR-200 in the System Profiler, so I know the computer sees the camera.
    - I have tried the camera on a Windows XP machine, and capture works perfectly, so I know the camera is functioning properly in VTR mode.
    - Deleted my FCP pref’s using FCP Rescue.
    - Deleted the Quicktime receipts, and re-installed Quicktime 7.04
    - Reverted back to Quicktime 7.01
    - Set the audio to 44.1 in the the Audio MIDI setup in the Utilities folder
    - Tried the “GarageBand” fix, opening the programing, playing a few notes and closing.
    - I have installed Quicktime using the program “Yank” to completely delete Quicktime and re-install.
    I may have tried more solutions, but these are the fixes that I can recall.
    If anyone has any others suggestions, it would be much appreciated.
    Brent

    Hi Brent:
    Although it looks as if you have tried all of the 'fixes' that are normally suggested here, please read through this Apple Article to see if some obscure thing applies to you.
    iMovie: Cannot see or control camera
    http://docs.info.apple.com/article.html?artnum=43000
    Sue

  • Can you launch a doc in Pages 5 with the formal panel closed?

    Driving me nuts, there's a number of Pages 5 documents that don't need to have anything but text edited and I don't need that side format box/panel to be open, which in smaller screens really uses up a lot of space.
    Is there a way to open a document with that darn side panel closed?

    Actually I have just tested Pages 5 and yes you can turn off the side panel by clicking on the Format icon (Paintbrush) top right.
    However since 95% of all your styling is only visible there, you will be turning it on and off a lot.
    You used to be able to show and hide the Inspectors with a keyboard shortcut in Pages '09, so that will still be your best option on your laptop.
    You raise a very valid point about the actual useability of the new UI.
    I disagree with the new User Interface for other reasons, principally it does such a poor job of showing the correct settings for users as needed, this just makes it one more reason to give it an F.
    Peter

  • Unable to capture from my Canon hv30

    I just tried to capture some footage from my hv30, the first time I've tried, and it say's on the capture screen that the capture device is off line. I have the camera properly connected and its in the right setting, is there some setting in premiere that's i have wrong? I have another program that came with the camera, and it can't connect to the camera either, saying that its not connected. Not sure what to do at this point, so if anyone has any ideas that would be awesome.

    This is the most weird camera I have ever seen, you have a miniDV tape camera appartently without a Firewire I/O connector.  I just looked at this Canon specification  http://www.usa.canon.com/consumer/controller?act=ModelInfoAct&fcategoryid=177&modelid=1620 6#ModelTechSpecsAct
    and there is nothing about a Firewire/IEEE-1394/etc.  Without a firewire interface Premiere is unable to capture video.  apparently there is some software supplied with the camera, maybe it can capture the video via the USB interface to your computer and then (if it is the correct format) you can import it to Premiere.

  • Unable to capture user comments and responder in RESPOND API

    We are building a custom application that uses Oracle Workflow underneath. The application users and responsibilities have been integrated into Workflow. Notifications are acknowledged and responded to directly from the application using the PL/SQL Notification APIs.
    When using the wf_notification.respond API with the appropriate user and comment information filled in, we are still unable to capture the responder information as well as the reponders comments. In other words, the RESPONDER and USER_COMMENT fields in the WF_NOTIFICATION is blank. However, the response does seem to go through otherwise. Do we need to set some kind of user context outside of just setting the response attributes and calling the respond API? Following is the code....
    owf_mgr.wf_notification.setattrtext(p_nid,
                   'RESULT'          ,
                   'APPROVED');
    -- This procedure then caused the WF to advance to next step
    -- Respond to notification, depends on RESULT setattrtext above
    owf_mgr.wf_notification.respond(     p_nid, -- notification id     
         p_respond_comment,     -- response_comment
    p_responder     );     --responder role
    Any help is greatly appreciated.
    Thanks,
    Raj

    If you are on 11.5.10 or greater or standalone 2.6.4 if you pass the responder value to wf_notification.respond API it should be updated in wf_notifications.responder column. The comments is now updated in wf_comments table against the notification id and not wf_notifications.user_comment column.
    Thanks, Vijay

  • Unable to capture field values in Master agreement  Line Items

    I am trying to get the field values from master agreement line items page. I have written the following code to get the line item details which is working fine to capture part number and quantity->
    agreementBean = doc.getRootParentIBean();
    lineItemCollection = agreementBean.getLineItems();
    collectionsize = lineItemCollection.size();
    for(i=0;i<collectionsize;i++){
         collectionbean = lineItemCollection.get(i);
         partNum = ""+collectionbean.getPartNumber() ;
         Quantity = ""+collectionbean.getQuantity();     
         throw doc.createApplicationException(null,partNum + " , " + Quantity );
    Now, my problem is that I am unable to capture the following field item values in the master agreement > line items page.
    1. Price Unit
    2. Unit Price
    3. Product Category
    4. Plant
    Please help me to find the values.
    Thankx in Advance.
    Su
    Edited by: subrataindra on Aug 10, 2010 11:11 AM

    This will return the name of the plant.
    .getExtensionField("PLANT").get().getDisplayName(session);
    Check if this returns the product category
    collectionbean.getExtensionField("ITEM_CAT").get().getDisplayName();
    This will Return the Price
    collectionbean.getExtensionField("PRICE").get().getPrice();
    (return type :BigDecimal)
    This will return the currency
    collectionbean.getExtensionField("PRICE").get().getCurrency;
    (Return type:String)
    Similarly to retrieve other fields for which there are no standard functions, use .getExtensionField("Field ID")
    Hope this helps
    Regards,
    Immanuel

  • Unable to capture value inside parameter T_LFBK of FK03 in display mode

    Hi Experts,
    I have to trigger a mail whenever there is a change in fields that are captured in parameter t_ffbk.
    However i am unable to capture the the screen values for this parameter as FK03 is in display mode.Please tell me how can i capture the screen field values in parameter T_LFBK.
    <Point offer removed by moderator>
    Thanks in advance.
    Edited by: Vinod Kumar on Jul 28, 2011 5:48 PM

    Hi Experts,
    I have to trigger a mail whenever there is a change in fields that are captured in parameter t_ffbk.
    However i am unable to capture the the screen values for this parameter as FK03 is in display mode.Please tell me how can i capture the screen field values in parameter T_LFBK.
    <Point offer removed by moderator>
    Thanks in advance.
    Edited by: Vinod Kumar on Jul 28, 2011 5:48 PM

  • Unable to Capture Video PE 3.0

    I'm using Premier Elements 3.0 and am unable to capture a video from my DV camera. I have reviewed all the instructions that might relate to the problem and have re installed the program. When I go to capture a video, in the top left of the screen indicates "Capture device off line" however I can start and stop my camera with the buttons on the capture screen. The get video button is not active. It will not download. Again if run through the start up instruction with no results.  The program use to work fine but I have not used it in a while. Any suggestions?

    A couple of questions:
    Do you have the 3.0.2 update?
    What make/model of camera?
    Does Windows give you the "bing-bong" sound, when you have the camera plugged-in via FireWire and you turn it on?
    What mode does the camera's manual tell you to set the camera in, for capture?
    Good luck,
    Hunt

  • Unable to Capture - Live Cam Voice - HELP!

    Suddenly I cannot capture anymore - I can still take images, but when I click to record I get the following message:Unable to capture video. Please check that you have sufficient space on your hard drive and the following are setup correctlyVideo CompressorAudio CompressorI certainly have enough hard drive space. I uninstalled and reinstalled all the software and even then updated the drivers. Nothing seems to work.
    All advice much appreciated. Thanks Giuseppe

    Thanks! Messed around and seems I can no longer record in MWV format but its back working in AVI format...with no compression. I can then edit after if required. Thanks for coming back to me on this one..it is a Great Help when people respond! Regards Giuseppe

  • Unable to capture the excise duties for intra stocktransfer

    Dear All,
    while doing goods receipt aganist outbound delivery in receiving plant for intracompany(Depo to Depo) unable to capture the excise duties.Please help on this.
    Thanks & regards,
    Bhargav

    Hi Prabhu,
    Excise duties are  are not picking automatically while doing j1ig
    Thanks & Regards,
    Vijaybhaskar

  • I am unable to capture pictures on my Iphone 4s

    Any one assist me how to fix this problem, I am unable to capture the pictures using back camera but I am seeing through it and when I click, it automatically come to home screen.

    If there is No 'X' on any apps you have Downloaded... then check in Restrictions... Settings > General > Restrictions > Deleting Apps  =  Off / On
    Understanding Restrictions  >  http://support.apple.com/kb/HT4213

Maybe you are looking for