Top "Event-handling" questions

Event handling is a coding style about handling messages between a source and one or more subscribers.

How to define an OnClick event handler for a button from within Qt Creator?

In visual studio, when designing a windows form, I can easily add an OnClick event handler for a button by …

qt button event-handling onclick qt-creator
C# delegate v.s. EventHandler

I want to send an alert message to any subscribers when a trap occurred. The code I created works fine …

c# delegates event-handling observer-pattern
Why people use message/event buses in their code?

I think that you have heard of message/event buses, it's the single place when all events in the system …

java events design-patterns event-handling
How to use a function that takes arguments with jQuery's change() method?

I'm using jQuery version 1.5. I am looking at jQuery's change() function and specifically at this bit: .change( [ eventData ], handler(eventObject) ) …

javascript jquery event-handling
How do you add marker to map using leaflet map.on('click', function) event handler

I'm trying to use an event handler to add a marker to the map. I can manage this with a …

javascript event-handling leaflet
Order of event handler execution

If I set up multiple event handlers, like so: _webservice.RetrieveDataCompleted += ProcessData1; _webservice.RetrieveDataCompleted += ProcessData2; what order are the handlers …

c# asynchronous event-handling
Determine mouse position outside of events (using jQuery)?

I need to get a hold of the absolute mouse position / coordinates (X and Y) using (preferably) jQuery like in …

jquery event-handling mouse position
jQuery: $().click(fn) vs. $().bind('click',fn);

When using jQuery to hookup an event handler, is there any difference between using the click method $().click(fn) versus …

javascript jquery event-handling
How to unbind a specific event handler

Code: $('#Inputfield').keyup(function(e) { if(e.which == 13) { functionXyz(); } else { functionZyx(); } }); $(document).keyup(function(exit) { if (exit.keyCode == 27) { functionZzy(); } }); …

javascript jquery events event-handling unbind
How to distinguish between move and click in onTouchEvent()?

In my application, I need to handle both move and click events. A click is a sequence of one ACTION_…

android event-handling touch-event android-event