events

excel original toolbar buttons event in c#

i want to get excel format cell buttons event in c# add-in to do additional actions after user's click. generally i want catch excel actions when a cell's property is changed like cell's background color or border. i found sheetchange and cellchange events that trigger just for changes of cells content, not cells properties like backgrou...

UITouch Event Propagation To Background UIViews

I'm having troubles getting any UIView that's not the foreground UIView to receive UITouch events. I'm building an all-Core Graphics-app, so I'm not using any built in UIViews or IB or anything - everything is programmatically constructed and drawn into. Here's my view hierarchy: Root View Type A Container Type A View Type A View Ty...

Detecting Handlers of a jQuery "Live" Event

Using: $('#foo').data('events').click We are able to access an iterative object of click handlers added to the element '#foo' but only when they were added with .bind() Is there a way to get the handlers for an event added with .live()? Is there any other way to know if an element has a click handler assigned? ...

How do software events work internally?

Hello! I am a student of Computer Science and have learned many of the basic concepts of what is going on "under the hood" while a computer program is running. But recently I realized that I do not understand how software events work efficiently. In hardware, this is easy: instead of the processor "busy waiting" to see if something hap...

Are events raised, triggered, or fired?

In a German programming forum we currently have a discussion about events and what you (grammatically) do with them. The MSDN talks about "Event Raising" and "to raise an event". Thus, this seems to be one possibility. Are there any other synonyms? What about "to trigger an event" and "to fire an event"? A Google search will bring re...

Userscript, identify when elements are added to the page (via events?)

Right now, I am working with a page that is automatically updated and I'm using setInterval to check for new elements. I'd like to do this with events but I don't know how to tell if an element has been added to the page via an event. Is this possible? ...

Java on a Mac: How do I detect when my application receives focus?

I looked through ApplicationListener, and they don't have it in there. On a Mac, it's when that application has the equivalent of focus; its menu is in the top menu bar. Also, if you know this, could you tell me how my application can request to de-focus itself? ...

does jquery have an equivalent of dojo.connect() ?

Forgive my ignorance as I am not as familiar with jquery. Is there an equivalent to dojo.connect() ? I found this solution : http://think-robot.com/2009/06/hitch-object-oriented-event-handlers-with-jquery/ But there isn't disconnect feature ! Do you know other solution in jquery ? There are jquery.connect but this plugin not work in m...

If element has been 'mouseover'ed for 500ms, run function with jQuery

For the sanity of my users, I want a 'mouseover' event to run after the selector has been hovered for half a second rather than as soon as they hover it. I first tried a setTimeout function but that runs however long the element has been hovered, I didn't think it through too much I guess. I've also spent a day (on and off) searching (a...

What's the Best Practice for Firing Manual OnClick Events?

Hey guys, I've got an XNA project that will be drawing several objects on the screen. I would like the user to be able to interact with those items. So I'm trying to build a method that checks to see which object the mouse is over, out of those which is the top most, and then fire an OnClick event for that object. Checking for the thin...

Forward event from custom UIControl subclass

My custom subclass extend UIControl (EditableImageView) Basically it contains 3 subviews: UIButton (UIButtonTypeCustom) UIImageView UILabel All the class works great but now I want to connect some events generated from this class to another. In particular when the button is pressed I want to forward the event to the owner viewcontro...

flex custom events bubbling

Dear Richard Szalay, i go through your answers regarding bubbling, i want explore bubbling more. Please see my sample below <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:view="com.view.*" > <mx:Script> <![CDATA[ import com.events.ImgLoaded; private function loadedd(evt:ImgLoaded):void{ t...

Events in inputfields after AjaxRequest.

Hello I have this problem when I do an ajaxrequest that I lose my onchange events from my inputfields. Well I have done this function that would reinit the events to those inputs but Im not sure if that is the best way to do it.. ...

jQuery responds to click() differently for user and programmatic triggers

Here's the code: this.Form.find("input[type=checkbox]").click(function(event) { if ($(this).is(":checked")) { console.log("checked"); } else { console.log("unchecked"); } }); If the checkbox is not checked, and I click with the mouse, I get "checked". If I trigger it programmatically like $("#someCheckb...

Clear All Event subscriptions (Clone linked)

I just implemented Clone from ICloneable and realized that the event subscriptions from my source instance also followed. Is there a good way to clear all those? Currently I am using a couple of these loops for every event I have to clear everything. foreach (var eventhandler in OnIdChanged.GetInvocationList()) { OnIdChanged -= (It...

How do I get the clicked element with inline HTML onclick and jQuery?

Hi, I'm creating a tags with this code: $('#td' + id).append('<p><a href="#" onclick="excluirArquivo(\'' + response + '\'); return false;"><img src="/erp/proposta/media/images/delete.png" alt="Excluir arquivo" /></a> ' + file + '</p>'); excluirArquivo function function excluirArquivo(arquivo) { $.ajax({ type: 'POST', ...

C# analogs for actionscript: events.Event, events.EventDispatcher, events.IEventDispatcher;

What are C# analogs for actionscript: import flash.events.Event; import flash.events.EventDispatcher; import flash.events.IEventDispatcher; And what is a translation for dispatchEvent( new SlicedEvent ( SlicedEvent.COMPLETE, _slice, startTag.time, endTag.time ) ); ...

Generate event, Swing

How can I generate event MouseWheelEvent for some Object? ...

How do I clear this setInterval

Normally, id set the interval to a var and then clear the var like var the_int = setInterval();clearInterval(the_int); but for my code to work i put it in an anonymous function: function intervalTrigger() { setInterval( function() { if(timedCount >= markers.length){timedCount = 0;} google.maps.event.trigger(markers[t...

Reference Object calling function in Javascript

I have a makeshift events system in JS and the attacher looks like this: events.attach(events.NEW_TASK,this.update); Where this.update is a callback/handler/function. The problem is, when the dispatcher tries to call this handler, it loses it's original context. How can I bind the handler with the context of the object that calls the ...