Mouse_Exited without event?

Hello,
Situation:
in my application, I open up a new window (singelton). There I have a "close"-Button with a mouse_over effect. When I close the window and reopen it with this button, the button is still selected, because no mouse_exited has taken place.
Question:
How can I simulate the Mouse event or set back the status of the button?
Thanks,
Wolfgang

What you could do is add a mouse listener to your component, and when you detect a mousePressed event, set an internal flag like "buttonDown" or something so that your componentResized method knows when to ignore that event. Maybe something like this:
  myComponent.addMouseListener(new MouseAdapter()
    public void mousePressed(MouseEvent e)
      mouseButtonDown = true;
    public void mouseReleased(MouseEvent e)
      mouseButtonDown = false;
  myComponent.addComponentListener(new ComponentAdapter()
    public void componentResized(ComponentEvent e)
      if (mouseButtonDown)
        return;
      // now do whatever

Similar Messages

  • Further action after leaving search help without event "onEnter"

    Hi,
    I created an iView with an input field to select an employee with search help PREM. Everything works well, so I can search by several match codes.
    And here's my problem: I need the name of the employee in an output field of my iView whenever I select a result of the search help without pressing the enter key (just to make the user sure to use the right employee).
    Is there the possibility to call a customer function and afterwards to bind the element? Ok, I think I need an interaction – but how can I do this without the event onEnter? I just want to select an employee with the search help and -when returning back- displaying his name.
    We substituted an html-application with this iView. The html-appl used a piece of java script in which we used the "on blur"-function, so when we left the input field we called a function to select the employee's name. This way was fine...
    Ok folks, who has an idea/solution?!
    Steffen

    hi steff........
               what you can do is... instead of a standard search help, you can use ovs... so in the coding part you can fill other details too with respect to the selected value... or
            try filling the output field  in the wddomodify method.
    ---regards,
       alex b justin

  • OO ALV validation check without event DATA_CHANGED and results via popup

    Hi Gurus,
    I'm working on SAP ECC 6.0 and I'm facing a problem during the ALV validation check. My requirement is to show an ALV with one editable field. In addition I have to pre-initialize this field in order to give a reference value to the user, but this is not always correct, or better, this field represent the maximum amount available, but, because of other validation checks, this field is not always correct (and it's ok, it's not a problem), and if it is greater than another amount I have to display an error.
    I was thinking about catching the event DATA_CHANGED and do the checks inside of it. It works but not completely, because if the user do not change anything the event is not raised and I cannot do my checks.
    My solution is to do the checks without catching the DATA_CHANGED event and display the errors in a separate popup window.
    The checks are ok, but I have problems during the displaying of the results: I would like to use the class CL_ALV_CHANGED_DATA_PROTOCOL in order to display the errors, I tried creating the Object:
      Data: go_Error Type Ref To CL_ALV_CHANGED_DATA_PROTOCOL.
      Create Object go_Error
        Exporting
    *      i_container =
          i_calling_alv = go_0200_Alv
    giving it a reference to the ALV (the go_0200_Alv is my CL_GUI_ALV_GRID object).
    Then I did many Call Methods to the Add_Protocol_Entry to add the message in the protocol and then display them calling the Display_Protocol Method of my "go_Error".
    The Popup is shown and the "links" to the ALV are correct (if I double click a message it selects the corresponding row of the ALV, but (and it's my problem) I cannot see the Description of the Column with the error: the popup window is an ALV grid itself with 3 columns ("Message Type", "Name of the Column" and "Message Text") where I can see correctly the Message Type and the Message Text but not the name of the column.
    Debugging the code I found that If I catch the event, the parameter er_Data_Changed (the class CL_ALV_CHANGED_DATA_PROTOCOL) is filled with some other informations like Modified Rows and other attributes like FieldCatalog, Row-ID, so I thought the problem was related to that, and that's why I replicated the whole case in my processing, filling every table I would see if I use the "standard way" for validation. Bu it didn't correct the error. I still don't see the name of the Column.
    This is my code, it's only the part interested, If you need other informations, please ask me and I will copy them.
    form CHECK_ALV_0200_0110 Changing pc_Error Type Char01.
      Data: lt_MatchK1 Type tp_Matches1_Key_t,
            l_Message  Type Char100,
            l_MessX    Type String,
            l_QtaRes   Type ZDM_AMT_ASSIGNED,
            l_QtaAcc   Type ZDM_AMT_ACCRUED,
            l_QtaStep  Type ZDM_AMT_ASSIGNED.
      Field-Symbols: <fs_Table>    Type Standard Table,
                     <fs_Master>   Type Standard Table,
                     <fs_Mod_Cell> Type LVC_S_MODI,
                     <fs_Line>     Type Any,
                     <fs_Field>    Type Any,
                     <fs_Any>      Type Any.
      Data lt_Matches_Alv_Mod Type tp_Matches1_Alv_t.
      Data ls_Modi Type LVC_S_MODI.
      Data: l_Row_ID Type I,
            l_Tabix  Type I.
      Field-Symbols: <fs_Match_ALV> Type tp_Matches1_Alv_s.
      Free go_Error.
      CREATE OBJECT go_Error
        EXPORTING
    *      i_container =
          i_calling_alv = go_0200_Alv
    * Validation Checks
      Clear pc_Error.
      Clear ls_Modi.
      Loop At gt_Matches1_Alv Assigning <fs_Match_ALV>.
        l_Tabix = Sy-Tabix.
        Check <fs_Match_ALV>-Status Eq con_Status_Temp.
    *   Set the Modified Row for the CL_ALV_CHANGED_DATA_PROTOCOL object
          Append <fs_Match_ALV> To lt_Matches_Alv_Mod.
          Add 1 To ls_Modi-Row_Id.
          ls_Modi-FieldName = 'AMT_DEDUCTED'.
          Write <fs_Match_ALV>-Amt_Deducted To ls_Modi-Value Currency <fs_Match_ALV>-Waers.
          Condense ls_Modi-Value No-Gaps.
          ls_Modi-Tabix = l_Tabix.
          Append ls_Modi To: go_Error->mt_Mod_Cells,
                             go_Error->mt_Good_Cells.
          l_Row_ID = ls_Modi-Row_Id.
        Clear l_Message.
        If <fs_Match_ALV>-Amt_Deducted Eq 0.
          pc_Error = con_X.
          CALL METHOD go_Error->Add_Protocol_Entry
            EXPORTING
              i_msgid     = 'ZDMV'
              i_msgty     = 'E'
              i_msgno     = '005'
    *          i_msgv1     =
    *          i_msgv2     =
    *          i_msgv3     =
    *          i_msgv4     =
              i_fieldname = 'AMT_DEDUCTED'
              i_row_id    = l_Row_ID
    *          i_tabix     =
          Continue.
        EndIf.
        Case g_Dynnr.
          When '0110'.
            Perform Get_ResQtaDispute1 Using lt_MatchK1
                                             <fs_Match_ALV>
                                       Changing l_QtaRes.
            Perform Get_ResQtaAccrued1 Using <fs_Match_ALV>
                                       Changing l_QtaAcc.
    *      When '0111'.
    *        Perform Get_ResQtaDispute2 Using lt_MatchK2
    *                                         <fs_Match_ALV>
    *                                   Changing l_QtaRes.
    *        Perform Get_ResQtaAccrued2 Using <fs_Match_ALV>
    *                                   Changing l_QtaAcc.
        EndCase.
        Add <fs_Match_ALV>-Amt_Deducted To l_QtaStep.
        If l_QtaStep > l_QtaRes.
    *     Store the Error
          pc_Error = con_X.
          Write l_QtaRes To l_Message Currency <fs_Match_ALV>-Waers.
          Condense l_Message No-Gaps.
          CALL METHOD go_Error->Add_Protocol_Entry
            EXPORTING
              i_msgid     = 'ZDMV'
              i_msgty     = 'E'
              i_msgno     = '002'
              i_msgv1     = l_Message
    *          i_msgv2     =
    *          i_msgv3     =
    *          i_msgv4     =
              i_fieldname = 'AMT_DEDUCTED'
              i_row_id    = l_Row_ID
    *          i_tabix     =
        EndIf.
        If l_QtaStep > l_QtaAcc.
    *     Store the Error
          pc_Error = con_X.
          Write l_QtaAcc To l_Message Currency <fs_Match_ALV>-Waers.
          Condense l_Message No-Gaps.
          CALL METHOD go_Error->Add_Protocol_Entry
            EXPORTING
              i_msgid     = 'ZDMV'
              i_msgty     = 'E'
              i_msgno     = '002'
              i_msgv1     = l_Message
    *          i_msgv2     =
    *          i_msgv3     =
    *          i_msgv4     =
              i_fieldname = 'AMT_DEDUCTED'
              i_row_id    = l_Row_ID
    *          i_tabix     =
        EndIf.
      EndLoop.
      If pc_Error Eq con_X.
    *   If there was at least one error, Display the Popup
        go_Error->mt_FieldCatalog[]   = gt_0200_FCat[].
        go_Error->ms_Layout-Zebra     = con_X.
        Get Reference Of lt_Matches_Alv_Mod[] Into go_Error->Mp_Mod_Rows.
        CALL METHOD go_error->display_protocol
    *      EXPORTING
    *        i_container        =
    *        i_display_toolbar  =
    *        i_optimize_columns =
      EndIf.
    EndForm.
    Do you know if there is a particular issue about that? Or, maybe, I'm doing something wrong...
    Please help me
    Regards,
    Claudio
    Edited by: Claudio Distrutti on Oct 31, 2008 12:38 PM

    Hello Claudio
    Nobody prevents you from calling your event handler method go_grid->HANDLE_DATA_CHANGED directly!
    What do I mean with that?
    I assume you are calling method go_grid->CHECK_CHANGED_DATA at the beginning of the PAI module to catch any changes from the editable ALV grid. Within the event handler method you do your validation and send the error popup if necessary.
    Now when the user closes the error popup and pushes e.g. the SAVE button then I can happen that method HANDLE_DATA_CHANGED does not trigger event DATA_CHANGED because nothing was indeed changed on the ALV grid. Yet the invalid value is still there.
    However within the FORM routine for saving the data you can just call your event handler method directly:
    FORM save_data.
    CALL METHOD go_grid->handle_data_changed
        EXPORTING
    *      er_data_changed =
          e_ucomm = 'SAVE'.
    ENDFORM.
    Now within your event handler method you always know when the method was called because if method CHECK_CHANGED_DATA triggers event DATA_CHANGED the IMPORTING parameter ER_DATA_CHANGED is bound whereas it is empty when the method is called from your SAVE routine.
    METHOD handle_data_changed.
      DATA: lo_log   TYPE REF TO CL_ALV_CHANGED_DATA_PROTOCOL.
        IF ( er_data_changed IS BOUND ).
          lo_log = er_data_changed.
        ELSE.
          CREATE OBJECT lo_log.
        ENDIF.
    " Do the validations and send error log if necessary
      lo_log->DISPLAY_PROTOCOL( ).
    ENDMETHOD.
    Regards
      Uwe

  • Search without events

    When I seach by keyword, the results are sorted by Events.
    How do I turn this off?

    If you search by typing directly into the search box you don't appear to be able to.
    However, if you click on the wee magnifying glass in the search box and select 'keywords' and then click on the particular one it displays without the event titles.
    Using a Smart Album will get you the same results.

  • Mouse click on graph without event handling

    Is there a way to detect mouse click on a graph without the event handling? My base version of LabVIEW does not have event handling features.
    Thanks,
    Ryan
    Solved!
    Go to Solution.

    Leaving out the Event Structure seems like cruel and unusual punishment.  My scorn is divided about 80/20 between NI for selling it and whoever tried to save a few bucks by buying it and then sticking it to you to workaround.  Perhaps you are a student in which case you are free labor and it is all good.
    Maybe your boss is a purist and dislikes Event Structures because they break the dataflow paradigm.  The alternative is of course polling, and in this case you have plenty of data flowing!  Unfortunately 99.9% of it is worthless.  Here is a little example in LV8.2 (don't know your version) that uses polling to check on the mouse button.  I only added a simple check for the button being pressed, if you want to know click (down/up) you can add a shift register and look for transitions in the button.  I do check that the front panel is up front, otherwise it will still register clicks even though you may be surfing the web.
    Hopefully everything is in the base package.
    Attachments:
    MouseClickNoEvent.vi ‏26 KB

  • Mouse status without event?

    Is there any way to get information about the mouse (e.g., which buttons if any are pressed) without an MouseEvent?
    I'm listening for Component events, and in the componentResized method I'd like to know if the mouse button is down so I can ignore the resizing events until the user is done resizing. There's no "isAdjusting" option like JSlider has.
    Thanks.
    -J

    What you could do is add a mouse listener to your component, and when you detect a mousePressed event, set an internal flag like "buttonDown" or something so that your componentResized method knows when to ignore that event. Maybe something like this:
      myComponent.addMouseListener(new MouseAdapter()
        public void mousePressed(MouseEvent e)
          mouseButtonDown = true;
        public void mouseReleased(MouseEvent e)
          mouseButtonDown = false;
      myComponent.addComponentListener(new ComponentAdapter()
        public void componentResized(ComponentEvent e)
          if (mouseButtonDown)
            return;
          // now do whatever

  • ISE 1.2: Show live Sessions with/without Events

    I have a strange issue. Sometime I see Events according to my live sessions, sometimes not. I am wondering is somebody is aware if this feature/bug in ISE 1.2 (Patch 5):
    all theses sessions come from the same SSID/WLC (WiSM2 with rel. 7.6). All sessions have full accouting and the same realtime log.
    Any idea?
    Thanks for any input!

    Hi Saurav
    I cannot understand your input. I still have the same after Patch 6 update and still no solution.
    And it does not matter what I am sorting...

  • How to call a view without event handler onaction method.

    Hi Experts,
    I have develop a WD application. It has three views let view1, view2 and view3.
    In view1 one button is there (onaction) which navigates to view2 through outbound plug  wd_This->Fire_Out_Screen1_Plg(   ). where Out_Screen1 is outbound plug of view1.
    Now view2 appears , I want that after 10 seconds view2 automatically call view3, without action on view2.
    I have written like  wd_This->Fire_OUT_SCREEN2_Plg(  ). where OUT_SCREEN2 is outbound plug of view2, which navigates to inbound plug of view3.
    But its not working. Please suggest how to and where to write code to call a view without action .
    for ur ref.

    Hi Bhagat,
    Yes, you can attach media objects into a view
    Using IFRAME ui element and html mime object.
         Please refer the below link
    To insert video in webdynpro - Web Dynpro ABAP - SCN Wiki
    Using Flash Islands
              Here, you need to have your audio/video file as flash object
         Please refer the below tutorial on flash islands( a generic example )
         Adobe Flash Islands for Webdynpro ABAP
    Hope this helps you.
    Regards,
    Rama

  • OEM sending clear without event being triggered

    Hello,
    We have an event setup for checking the library cache hit%. The problem is even where there is no alert, it sends a alert cleared message.
    We have the event set up for about 10 databases, but it doesnt do the same with all of them ?
    When I go in the Event Log it says "Event test library cache hit% is cleared"
    Can anyone tell me please, why this is happening ?
    Thank you

    When you assign a function to be an event handler you don't use the parentheses:
    btn_advance.onPress = ScrollForward;
    Because using them means execute this function now. Of course you might actually have a function that returns a function in which case you would use them.

  • Any way to update a matrix cell without events being produced in B1 8.8

    Hi
    I have written some code to update the gl code column in the sales order matrix depending on a field value
    This works fine but generates the usual screen flicker / events being produced
    I update it using -
    matrix.Columns.Item("159").Cells.Item(pVal.Row).Specific.STRING = recset.Fields.Item(0).Value
    Is there a faster to do this please ?
    I have tried the new matrix.SetCellWithoutValidation command but this only works on udf fields
    Thanks for any ideas
    Regards Andy

    Hello Andy,
    You may read this thread to prevent your addon from re-processing the entered data.
    Freezing the form is also good idea.
    Regadrs
    János

  • Imovie library has imported without event

    I need to work on an edit started by another user. They used imovie 10.0.02, and I have recently upgraded to Yosemite, so have 10.0.06.
    I am unfamiliar with the new library system and still the imovie 9 version for most things but for this project will use imovie 10.
    He followed the instructions and created a new library with the projects and footage in it.
    I've now copied this library onto my mac.
    I now have the libraries showing up in my imovie 10.0.06, but there is no footage. The library file is 16GB, so I know it has footage in it - but none has been imported into imovie. In imovie the timeline has made it across, and titles etc are in tact, but there is no footage.
    I tried deleting the imovie Theater and Imovie Library file and updating projects and events - but this hasn't worked.
    Any clues?

    check in the old events and prohects folders from iMovie 11 for a flie indicating imovie10 migration or whatever it's a single file in each of these too folders. Delete these two or the one from the events and go back in iMovie 10 and click on refresh/actualise or whatever this is called. This help for me to see the migrated prohjevts  

  • Burning project WITHOUT event.

    This is my first Mac, so I'll get the noob error out of the way:
    Once I finished my iMovie projects, I deleted the event that it came from.
    Now iMovie won't let me burn my finished projects or export them to the desktop because "Their events are currently unavailable."
    There HAS to be a way to burn the projects to DVD in my situation, right?
    HELP

    You need to start over and keep the event.
    In iMovie, all the video footage is kept in the event.
    When you do a project, you are basically creating a text file that has in and out points, pointers to music, transitions, text, etc.
    When you "share" or render your project, the project file uses those pointers to bring in the actual footage into the final product.
    Once you have shared your project, and you are absolutely positively sure that you do not want to edit it further, you do not want to share it to a different medium, etc. Only then should you delete the event. (and even then, no rush)

  • Calendar sharing without event details

    Dear all!
    I use iCloud services for private as well as business matters.
    I would like to share my availability with some of my colleagues, without sharing any personal details.
    For some reason this function ceased to exist during transition from .Mac to me.com and is missing ever since. I am looking for viable options.
    Has anybody any workaround/ideas?
    Thanks in advance!

    Hi Saramos,
    When setting up Family Sharing you must have a credit or debit card as your payment method. See this article for reference -
    Family purchases and payments
    When a family member makes a purchase it will be billed to any gift or store credit that they have first. If none exists it will be billed to you.
    As the family organizer, you may not set your billing method for purchases to anything other than a credit or debit card. If you have a store credit such as from pre-paid cards, it may not be shared with other family members. See this article for reference -
    How iTunes Store purchases are billed
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Help! Can't overclock new Z87-G45 Gaming without Event 41 Task 63 shutdowns

    I'm running into a frustrating problem with Event 41 Task 63 "unexpected shutdowns" when I'm trying to overclock the computer I recently built. The machine shuts down instantly and seemingly randomly under light load, often when it's idle. It doesn't BSOD, there's no crash dump, and the bug check codes are all zeros in event viewer. It doesn't shutdown while stress testing or playing games. It's certainly not overheating.
     If I run the processor at default clock this doesn't happen, or at least, it hasn't so far. But when I dial in a modest 4.2ghz overclock, it'll reliably happen once or twice daily. The thing is, my overclock will stress test for 24 hours stable with every program I've tried (Intel Extreme Tuning Utility, AIDA64, Prime95) and passes Intel Burn Test 10 passes at very high. It only seems to generate the Event 41 errors while idle or web browsing.
     Steps I've taken so far that have not solved the problem:
     - replaced PSU
     - replaced memory
     - checked cable connections to motherboard
     - flashed bios to latest
     - updated all drivers to latest
     - disabled C-states
     - disabled adaptive voltage and dynamic multiplier
     - disabled sleep in Windows power plan
     - disabled all but one audio driver
     - verified hard drive passes dskchk
     - verified memory passes memtest 12 hours
     - verified sfc/scannow gives no errors
     I'm close to abandoning overclocking but that's disappointing.
     Here are my system specs:
     OS: Windows 8
     Motherboard: MSI Z87-G45 gaming
     Processor: Intel i5 4670k
     Cooler: Hyper 212+
     Memory: Gskill 2x4GB 1600mhz 8-8-8-24 (Haswell compatible)
     Video card: MSI 770 GTX Twin Frozer
     PSU: Seasonic G-series 650W (Haswell compatible)
     Firewire Card: SIIG 2-port PCIe
     Drive: Seagate Barracuda 1TB
     Optical: ASUS DRW-24B1ST
     Here's the overclock I've been attempting:
     Core multiplier: 42
     Vcore: 1.16v
     Ring multiplier: 41
     Vrin: 1.15v
     Vccin: 1.85v
     XMP enabled (1600mhz, 1.5v)
     (all other settings default in MSI bios)
    Can anyone suggest to me what might be going on here?
    I've tried raising vcore to 1.19 and running fixed voltage with no difference.
    Are there other settings I should try changing? One thing, for example, is that I've left vdroop control on auto. I have different % options in the MSI bios, should I start experimenting? I read that Haswell has little vdroop so I didn't mess with it.
    Is it right to assume this isn't a motherboard problem, since I don't seem to get the unexpected shutdowns when I'm running stock clocks? I think I've ruled out the PSU and ram since I've replaced them both, so if it's a hardware issue I think it's got to be the motherboard.
    Thanks for any help.

    I know this topic is old but i have been having this same problem as andy and i cant figure it out. Also im sorry if i wasnt suppose to continue on someones thread but i thought it would be easier since we had the same problem. I have the same mobo and cpu, this only happens when i try to OC. when i set it back to stock bios it doesnt happen. Event id 41 with a random reboot and no BSOD. i dont know what to do anymore besides revert back to stock. IF anyone can help me let me know.
    i have oc to 4.4 multiplier with 34x uncore ratio.
    things i have tried. set everything to auto except those two settings above.
    changed oc multiplier to fixed/dynamic.
    turned off xmp lowered ram to 1333mhz ddr3
    tested vcore from 1.15 to 1.265 in bios.
    vccin at 1.9 to 1.95
    vring to 1.15
    auto offset settings (vcore/vrin) - also tried .001 offset as well
    turned off and on c-states
    C1E off
    ram timing and volts to auto or manual timings of 9-10-9-28-2 1.5V which were found on the box of ram
    ive ran memtest+86 for 4 runs with no problems
    sfc/scannow -checked out ok
    ran antivirus/malware
    ccleaner
    lowered cpu multiplier to x40
    i passed AIDA64 and prime95 with 6 hours each with vcore at 1.2 but its reboots randomly when on light load like internet browsing.
    this whole computer is 2 months old.
    specs
    MSI G45 Z78 motherboard
    4670k cpu
    G skill 1866 2x8GB DDR3 Ram
    EVGA 760GTX
    H100i cooler
    seasonic G series 750W
    samsung SSD 840 250GB
    2TB toshiba HDD
    5 rosewill fans

  • MOVED: Help! Can't overclock new Z87-G45 Gaming without Event 41 Task 63 shutdowns

    This topic has been moved to Overclocking, Undervolting.
    https://forum-en.msi.com/index.php?topic=173217.0

    I know this topic is old but i have been having this same problem as andy and i cant figure it out. Also im sorry if i wasnt suppose to continue on someones thread but i thought it would be easier since we had the same problem. I have the same mobo and cpu, this only happens when i try to OC. when i set it back to stock bios it doesnt happen. Event id 41 with a random reboot and no BSOD. i dont know what to do anymore besides revert back to stock. IF anyone can help me let me know.
    i have oc to 4.4 multiplier with 34x uncore ratio.
    things i have tried. set everything to auto except those two settings above.
    changed oc multiplier to fixed/dynamic.
    turned off xmp lowered ram to 1333mhz ddr3
    tested vcore from 1.15 to 1.265 in bios.
    vccin at 1.9 to 1.95
    vring to 1.15
    auto offset settings (vcore/vrin) - also tried .001 offset as well
    turned off and on c-states
    C1E off
    ram timing and volts to auto or manual timings of 9-10-9-28-2 1.5V which were found on the box of ram
    ive ran memtest+86 for 4 runs with no problems
    sfc/scannow -checked out ok
    ran antivirus/malware
    ccleaner
    lowered cpu multiplier to x40
    i passed AIDA64 and prime95 with 6 hours each with vcore at 1.2 but its reboots randomly when on light load like internet browsing.
    this whole computer is 2 months old.
    specs
    MSI G45 Z78 motherboard
    4670k cpu
    G skill 1866 2x8GB DDR3 Ram
    EVGA 760GTX
    H100i cooler
    seasonic G series 750W
    samsung SSD 840 250GB
    2TB toshiba HDD
    5 rosewill fans

Maybe you are looking for