Event structure mouse up event outside icon bounds

I've just noticed that the 'mouse up' event only works if the mouse cursor remains hovering over the control panel icon associated with it.
It's a problem for me because I have a slider bar which passes values (via an event queue, then RS232 to hardware) when the slider value changes. But that can generate lots of queued up serial writes if I slide quickly back and forth with the slider, so I use a mouse up event to flush the queue. It appears to work, but if I click and drag, sliding the cursor outside the slider bar area, it fails to recognise the mouse up event.   

Hi Graham,
Is it the default behaviour that the Mouse Up event only works while the mouse is above the control itself. If you want to have a slightly larger area, you can use the Mouse Up event of the Pane, and then check the co-ordinates of the mouse cursor before doing your processing.
Regards,
Imtiaz Chowdhury
Head of Digital Technologies
Brand786

Similar Messages

  • Capturing Mouse Click Event Outside a Canvas/Component

    Hello Guys
    I have a canvas based component and i want to capture a mouse click event outside that component.
    How is it possible?
    Thanks a lot

    Thanks a lot Morphic
    I solved it using focusout method from my component;s textinput but your method is also good and will help me in later stages.

  • Can i get mouse location and event outside JFrame?

    Can i get mouse location and event outside JFrame?
    any related link or document? thx~

    what I figure out from your question is that, you want to get the coordinates even if the mouse is not directly interacting with any of the java components of your application.
    I would consider this as an interaction with the OS so that it sends a call to your java program as well when ever the mouse event occurs. If you use JNI to catch system events, I think it should work.

  • Handling events outside components..

    Hi there,
    I would like to handle mouse events outside a components.
    After that my application is started, I want to run another thread
    when mouse is pressed.
    Is it possible?

    you can add mouse listener to frame itself or if you are using jpanel to add your components than you can add mouse listener to jpanel too

  • Listening for an event outside of the object...

    Hey, I spent a lot of my day trying to figure out how to
    listen for an event outside of an instantiated object of my own.
    I made my own class called
    Link. When my Link class is instantiated, a Loader object
    (var loader:Loader) is added and it loads a user-specified external
    PNG file. I want to track the Event.COMPLETE event OUTSIDE of my
    Link class, like in my FLA's Actionscript.
    So, I tried a few things without any luck, and by these you
    might get the idea of exactly what I'm trying to do:
    var link1:Link = new Link(...);
    link1.loader.addEventListener(Event.COMPLETE, handler);
    That didn't work, so I tried:
    var link1.Link = new Link(...);
    var loader = link1.getChildByName("loader") as Loader;
    loader.addEventListener(Event.COMPLETE, handler);
    ... that didn't work either. :(
    Any ideas?
    If I am taking the completely wrong approach please do let me
    know. If there's ANY way to know WHEN my loader has completed
    loading its image outside of my Link class...
    Thanks!
    ~ Andrew Merskin

    Let your Link class handle the Loader events. When
    Event.COMPLETE fires,
    just redispatch the event or dispatch a custom event.
    Example 1:
    link1.addEventListener("ALLDONELOADING", linkEventHandler);
    function linkEventHandler(event:Event)
    if(event.type == "ALLDONELOADING")
    // do something or nothing at all
    // Inside your link class you are listening for the load
    complete
    function loadCompleteHandler(event:Event)
    dispatchEvent(new Event("ALLDONELOADING")));
    Example 2:
    link1.addEventListener(Event.COMPLETE, linkEventHandler);
    function linkEventHandler(event:Event)
    if(event.type == Event.COMPLETE)
    // do something or nothing at all
    // Inside your link class you are listening for the load
    complete
    function loadCompleteHandler(event:Event)
    dispatchEvent(event);

  • Claims authentication: "Server was unable to process request. --- Index was outside the bounds of the array"

    Hi there,
    I recently got a peculiar error when users tried to log-in into a SP 2010 portal using claims based authentication.
    The following error is logged in the event viewer of the SP server in question:
    Event ID 8306 - Claims authentication
    An exception occurred when trying to issue security token: Server was unable to process request. ---> Index was outside the bounds of the array.
    I also found an IIS warning entry with a similar message:
    Event ID 1309 - Web Event
    Exception type: FaultException
    Exception message: Server was unable to process request. ---> Index was outside the bounds of the array.
    I simply could not find an answer to why this happened, but an iisreset seemed to have fixed the issue. I was wondering if anyone here would know a possible root cause for this issue?
    Thanks in advance for your help.
    Regards,
    P.

    Hi,
    Thanks for posting your issue, Kindly browse below mentioned URLs to fix this issue
    http://underthehood.ironworks.com/2011/05/sharepoint-2010-an-exception-occurred-when-trying-to-issue-security-token-the-server-was-unable-to-p-1.html
    http://nearbaseline.com/blog/2011/01/claims-exception-occurred-issuing-a-security-token/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Reading mouse and keyboard outside program

    Hi!
    Is it possible to do what title says? I would like to make program that record everything that user do with mouse and keyboard and then "play" same actions again.
    Playing is easy using Robot class. Also reading (polling) mouse location on screen is possible with PointerInfo class.
    But is it really so that I can't read mouse clicks or keypresses any way when mouse or keyboard focus is outside the Java program frame? At least I didn't find any kind of class that I could use for this.
    Thanks!

    No spyware, I was thinking more like cheating in one game ;-)
    But well, that's a bit odd. There is already PointerInfo telling mouse coordinates, why not somekind of ButtonInfo telling state of mouse buttons...
    I have additional question, related to this same thing:
    If I want to make Java program that run on background (i.e. no frame or window visible) and I want to have it so that when you press for example ctrl+shift+L, that Java program gui appears to screen.
    But if it's not possible to read keyboard events outside program frame, this isn't possible either? Or is there some workaround to this?
    There seems to be possibility of using SystemTray coming in Java version 6, that nice! But still, I would like to know is there any way to "wake up" Java program that doesn't currently have any kind of gui visible on screen.
    Thanks again!

  • When i open firefox from my desktop, it won't open as a full page,only a tiny page when i mouse over the firefox icon on my taskbar

    if I open firefox, it doesn't go to my home page, instead my desktop stays up. if I mouse over the firefox icon on the taskbar a tiny homepage pops up but you can't make it bigger.

    This has happened to me many times but on the older FF 3 It could be a small bug, One should list the PC's being used as it could be related? Mine is an E-Machine Mod, W3609 running W7.

  • After upgrading to Lion, Preview (5.2.2) appears to have lost the facility to run a slide show by using my mouse to click an icon in the visible menu bar, as I could in the previous version.  Can I retrieve that icon and thus that facility?

    After upgrading to Lion, Preview (5.2.2) appears to have lost the facility to run a slide show by using my mouse to click an icon in the visible menu bar, as I could in the previous version.  Can I retrieve that icon and thus that facility?

    Unfortunately not. Lion has made many adjustments to the previous system. Try opening your pdfs in keynote.

  • Call Bapi_Material_Availability Error : Index was outside the bounds ...

    I am coding .net 2003 (VB)  and  .NET connector 2.0  Call Bapi_Material_Availability . It Error  Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.
    This my code:
       Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim Batch As String
            Dim Check_Rule As String
            Dim Customer As String
            Dim Dec_For_Rounding As Short
            Dim Dec_For_Rounding_X As String
            Dim Doc_Number As String
            Dim Itm_Number As String
            Dim Material As String
            Dim Material_Evg As Test6.BAPIMGVMATNR
            Dim Plant As String
            Dim Read_Atp_Lock As String
            Dim Read_Atp_Lock_X As String
            Dim Stge_Loc As String
            Dim Stock_Ind As String
            Dim Unit As String
            Dim Wbs_Elem As String
            Dim Av_Qty_Plt As Decimal
            Dim Dialogflag As String
            Dim Endleadtme As String
            Dim Return0 As Test6.BAPIRETURN
            Dim Wmdvex As Test6.BAPIWMDVETable
            Dim Wmdvsx As Test6.BAPIWMDVSTable
            Material = "100-400"
            Plant = "1000"
            Unit = "ST"
            Try
                SapProxy11.Bapi_Material_Availability(Batch, _
                Check_Rule, _
                Customer, _
                Dec_For_Rounding, _
                Dec_For_Rounding_X, _
                Doc_Number, _
                Itm_Number, _
                Material, _
                Material_Evg, _
                Plant, _
                Read_Atp_Lock, _
                Read_Atp_Lock_X, _
                Stge_Loc, _
                Stock_Ind, _
                Unit, _
                Wbs_Elem, _
                Av_Qty_Plt, _
                Dialogflag, _
                Endleadtme, _
                Return0, _
                Wmdvex, _
                Wmdvsx)
                Me.TextBox1.Text = Av_Qty_Plt.ToString()
            Catch ex As SAP.Connector.RfcAbapException
                MsgBox(ex.Message.ToString)
            End Try
        End Sub
    ========
    <i>Source Error:
    Line 157:     ByRef Wmdvsx As BAPIWMDVSTable)
    Line 158:        Dim results As Object()
    Line 159:        results = SAPInvoke("Bapi_Material_Availability", new Object() { _
    Line 160:                            Batch,Check_Rule,Customer,Dec_For_Rounding,Dec_For_Rounding_X,Doc_Number,Itm_Number,Material,Material_Evg,Plant,Read_Atp_Lock,Read_Atp_Lock_X,Stge_Loc,Stock_Ind,Unit,Wbs_Elem,Wmdvex,Wmdvsx })
    Line 161:        Av_Qty_Plt = CType(results(0), Decimal)
    Source File: E:\SAP\BAPI\Test6\SAPProxy1.vb    Line: 159
    Stack Trace:
    [IndexOutOfRangeException: Index was outside the bounds of the array.]
       SAP.Connector.Rfc.RfcClient.RfcInvoke(SAPClient proxy, String method, Object[] methodParamsIn) +1229
       SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn) +70
       Test6.SAPProxy1.Bapi_Material_Availability(String Batch, String Check_Rule, String Customer, Int16 Dec_For_Rounding, String Dec_For_Rounding_X, String Doc_Number, String Itm_Number, String Material, BAPIMGVMATNR Material_Evg, String Plant, String Read_Atp_Lock, String Read_Atp_Lock_X, String Stge_Loc, String Stock_Ind, String Unit, String Wbs_Elem, Decimal& Av_Qty_Plt, String& Dialogflag, String& Endleadtme, BAPIRETURN& Return0, BAPIWMDVETable& Wmdvex, BAPIWMDVSTable& Wmdvsx) in E:\SAP\BAPI\Test6\SAPProxy1.vb:159
       Test6.WebForm1.Button1_Click(Object sender, EventArgs e) in E:\SAP\BAPI\Test6\Default.aspx.vb:64
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain() +1292
    </i>
    Pls. help me.
    Thank you.

    Hi Kreangsak,
    It seems that you need to initialize you tables, parameters for rfc function
    Dim Wmdvex As Test6.BAPIWMDVETable
    Dim Wmdvsx As Test6.BAPIWMDVSTable
    Wmdvex = new Test6.BAPIWMDVETable()
    Wmdvsx = new Test6.BAPIWMDVSTable()
    If there is other table, you need to initialize them with new operator. Null tables does not accepted.
    If you problem goes set the call stack's "show non-user code" property and send the stack.
    Best Regards,
    Huseyin Akturk
    SW Engineer & SAP ABAP Consultant
    www.huseyinakturk.net

  • How can I restore full webpages being shown when I run my mouse over the Mozilla icon on the toolbar?la

    Prior to today, when I ran my mouse over the Firefox icon on the tool bar I would get an image of whatever web page I had opened. Now, all I get is text. For example, if I had the BBC open, I could see the open web page by touching the Firefox icon with my mouse. Now all I get is test saying "BBC Player..." Whass up?

    You can check the <b>browser.taskbar.previews.*</b> prefs on the <b>about:config</b> page.
    *http://kb.mozillazine.org/about:config

  • Adobe Reader XI, Comments, Comment Dialog, when multiple paragraphs entered causes comment to rapidly flicker when mouse hovers over comment icon.  Unreadable.  Can still right click and open the icon to edit text.  Windoes 8.1.  Repeatable on two identic

    Adobe Reader XI downloaded to my wife's laptop tonight.  Windows 8.1.  Open PDF, select Comments > comment dialog, then place icon on PDF and start editing.  Small edits work fine.  Large amounts of comment text, once you move off the icon and come back and hover over the comment icon, causes the full size comment window to flicker rapidly (5-10ms between on and off) until you move the mouse away from the icon.  Unreadable.  Tried on my identical model laptop and happens there too.  What's going on?

  • Error during Addon Installation Index was outside the bounds of array

    Hi  wen im trying to install addon on x64 2003 server its throwing me error
    Customer library
    "Error during Addon Installation Index was outside the bounds of array."
    "Error(-2) at EndInstallEx(False) at the end of the addon installation"
    Please provide me a solution for this.
    Thanks
    Rekha

    Hi Rekha,
    You may check this: Add-on Installer Issue
    Is this your add-on or SAP add-on? If it is 3rd party add-on, post it to the other forum
    Thanks,
    Gordon

  • Release Management 2013 Index was outside the bounds of the array

    I am getting "Index was outside the bounds of the array." error when Release Management 2013 is in Deploy step .
    Status: Rejected
    Command Output show "3589 File(s) copied" at the end of file
    The build of solution was Build succeeded completed.
    i try run release again and it no show log file
    Thanks for your help.
    steve

    Hi 
    I follow the steps to tracking Release management log and i see the error, a component have in the field "File extension filter" the value "*.*", i change this value to "*.config" and deploy is done 
    the complete error:
    - Index was outside the bounds of the array.: \r\n\r\n   at Microsoft.TeamFoundation.Release.Common.Helpers.TextFileEncodingDetector.DetectSuspiciousUtf8SequenceLength(Byte[] sampleBytes, Int64 currentPos)
       at Microsoft.TeamFoundation.Release.Common.Helpers.TextFileEncodingDetector.DetectUnicodeInByteSampleByHeuristics(Byte[] sampleBytes)
       at Microsoft.TeamFoundation.Release.Common.Helpers.TextFileEncodingDetector.DetectTextFileEncoding(FileStream inputFileStream, Int64 heuristicSampleSize, Boolean& hasBom)
       at Microsoft.TeamFoundation.Release.Common.Helpers.TextFileEncodingDetector.DetectTextFileEncoding(String inputFilename)
       at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.ComponentProcessor.ReplaceConfigurationVariablesInFilesImplementation(String path, String searchPattern, Func`4 directoryFileRetriever, Func`2 readAllText, Func`2 detectTextFileEncoding,
    Func`3 replaceConfigurationVariables, Action`3 writeAllTextWithEncoding, Action`2 writeAllText)
       at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.ComponentProcessor.ReplaceConfigurationVariablesInFiles(String path, String searchPattern)
       at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.ComponentProcessor.ReplaceConfigurationVariablesPostImplementation(Action`2 replaceConfigurationVariablesInFiles)
       at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.ComponentProcessor.DeployComponent()
    THANKS FOR YOUR HELP
    steve

  • Script component Fail: System.IndexOutOfRangeException: Index was outside the bounds of the array

    In SSIS package “script component” is failing due to the following exception. This exception is occurring sometimes only.  This
    script component contain Try/Catch, still it’s failing. What could be the reasons for this exception?
    Error Message
    5246793 User:OnError Package1 2015-01-16 03:40:45.000 2015-01-16 03:40:45.000 00:00:00 System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.HandleUserException(Exception e)
       at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.ProcessInput(Int32 inputID, PipelineBuffer buffer)
       at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)
    5246800 OnError Package1 2015-01-16 03:40:45.000 2015-01-16 03:40:45.000 00:00:00 SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Script Component" (657) failed with error code 0x80131508 while processing input
    input "Input 0" (666). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages
    posted before this with more information about the failure.

    Thanks for your reply. Please consider the following points too.
    1. In this code I don't use any array or list
    2. This exception is not happening always, when running the package again some time success some time failing.
    3. More than 100 Million records flow through this script component.
    4. I applied Try/Catch for whole script component. In this case script component should ignore the recode and should continue but it is not.
    5. Same package running successfully in QA Environment with same data. This exception sometime only occurring in Production environment only.
    6. Similar error message appearing three time. Can it be a time out error?
    5246793 User:OnError Package1 2015-01-16 03:40:45.000 2015-01-16 03:40:45.000 00:00:00 System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.HandleUserException(Exception e)
       at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.ProcessInput(Int32 inputID, PipelineBuffer buffer)
       at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)
    5246794 OnError Package1 2015-01-16 03:40:45.000 2015-01-16 03:40:45.000 00:00:00 System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.HandleUserException(Exception e)
       at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.ProcessInput(Int32 inputID, PipelineBuffer buffer)
       at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)
    5246795 OnError Execute Package1 (R2OK) 2015-01-16 03:40:45.000 2015-01-16 03:40:45.000 00:00:00 System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.HandleUserException(Exception e)
       at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.ProcessInput(Int32 inputID, PipelineBuffer buffer)
       at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)
    These are some of the questions that I have:
    1. Bug in SSIS script component in SQL Server 2008R2?
    2. Is there any place Script component by default using Array or List?
    3. Why Try/Catch is not success?
    I know this is mess but please try to help!

Maybe you are looking for