event-handling

EventTrigger doesn't work on controls inside <sdk:Page.Resources>

i am using EventTrigger in silverlight application to handle some events through MVVM model, trigger is working fine on the layoutroot controls, but there are some controls inside the pages resources but the trigger is not working with them :( is there anything i should add or change the namespace or something ? here is my code <i:In...

MouseListener for JPanel missing mouseClicked events

I have a JPanel that I have created a MouseListener for and I am seeing some behavior that I can't explain. Usually when I click the mouse within the JPanel, I see the following events fire: mousePressed mouseReleased mouseClicked On some occasions, I don't see the mouseClicked event fire, I only see: mousePressed mouseReleased I...

create generic LostFocus event handler in c#

here is the situation http://i962.photobucket.com/albums/ae103/kashyaprakesh/misc/denominationwindow.jpg i have text boxes to left which accepts denomination values and other text box to right gives the total value for eg in 1000's label's left textbox if i put value as 5 then to right the value is 5000. i used lostFocus event handl...

JQuery and event bubbling... AGAIN.

I am roughly working with the following: var i; var k = 5; $('document').ready(function () { $('#someElement').click(function (e) { e.stopImmediatePropagation(); i++; if (i >= k) { my_function(); }); } }); my_function() { alert(i); $('#myDisplay').text("You have clicked on '#so...

Test events with nunit

Hi everybody, im just starting with TDD and could solve most of the problems i've faced on my own. But now im lost: How can I check if events are fired? I was looking for something like Assert.Raise or Assert.Fire but theres nothing. Google was not very useful, most of the hits were suggestions like foo.myEvent += new EventHandler(bar);...

ext gwt grid event

Hi. how do i get a cell value in GridEvent when clicking on a certain row. I want to vave something like: (look at the Wishful thinking): grid.addListener(Events.RowDoubleClick, new Listener<BaseEvent>() { @Override public void handleEvent(BaseEvent be) { GridEvent gr = (GridEvent) ...

Can A .swf loaded with SWFLoader propagate events to the parent application?

I am building a compartmentalized Flex application which uses <SWFLoader > to load additional Flex applications inside it. I am currently planning on using the LocalConnection class to have these two applications talk to each other, but I'm wondering if there's any kind of event driven way to have actions in the internal application pro...

Making Android game, key input registered weirdly on X10 Mini Pro

Hey, I've just started to learn Android development and ran into a problem. Controls in the game I'm making work on virtual device, but not on phone: I have an Xperia X10 Mini Pro I'm making a basic Pong game to learn droid software development The game works just fine on my Android virtual device, you can move the paddles up and down...

UIView event handling confusion

Hi, I'm trying to intercept touch events from a MKMapView. From various discussions around the internet I gathered that it is impossible to get the touch events received by MKMapView directly. So, I created a UIView subclass EventHandlingView that intercepts touch events. So, in my view controller, I first add the MKMapView instance as ...

function name(e) in Javascript

As a complete Javascript novice I'm challenged by what may seem like simple concepts to the almighty javascript overlords that call Stackoverflow home. My problem isn't really problem. When I'm doing my javascript up in my code editor down at the ghetto I'll often see stuff like this function name(e) { if(e.KeyCode) { .....

How can I press a swing JButton using mouse events?

I Have a JButton (or any Component, really) that I would like to trick into thinking that it has been clicked on and therefore firing its action performed event. I don't want to call the action performed or doClick directly because I am trying to make a solution that generalizes beyond buttons, and I am constrained to posting events. I ...

.Net Treeview Event Handling

I am in the process of migrating a VB6 app to .Net and we must provide like-for-like functionality at all times. In one form is a treeview with checkboxes that has three levels of nodes. The first level serves only to group the next level down and they are not checkable. The second level nodes are checkable by the user and when checked o...

File upload with temp iframe and Prototype event handlers

I'm working on a script that will submit form files (images) through a temporary iFrame and then return thumbnails of the images, which are then moved from the iFrame to the main document. This works fine. But I am also embedding a link which the user can click to remove the image if desired. This link uses Prototype to send a request to...

Swing: Preventing CellEditor from losing focus

I have a table ( in which I make a table cell editor consisting of a text field and a button. Clicking the button brings up a pop up menu with a date picker. The idea is that the text field should be updated whenever a date is selected in the date picker. Problem is, when interacting with the date picker, the focus of the cell editor is...

Interface method as event handler

Is it possible to use interface method as event handlers in Delphi 2007? The simple versions don't work: type TMyEvent = procedure of object; IMyInterface = interface procedure Handler; end; TMyClass = class(TInterfacedObject, IMyInterface) public procedure Handler; end; var ev: TMyEvent; obj: TMyClass; intf...

Unsubscribing Forms components from long-lived event sources - when?

I have a .NET 1.1. application which provides string resources through a bespoke translation system that looks a little like this: interface ITranslationProvider { string GetTranslation(string key); event LanguageChangedEvent LanguageChanged; } ie: language can change at runtime, and components need to respond by updating dis...

Quick clarification about when I have to remove handlers in .Net, VB.Net

If I have a class with a couple of event handlers inside of it which are attached to an object that is defined within the class, am I right in thinking that I don't need to implement IDisposable to remove said handlers, even if I explicitly added the handlers myself? Also, can anyone point me in the direction of an article that explains...

question about handling events from an object that throws them from threads

I have a class, ProcessorClass. It has two methods Start() and Stop(). When you hit start, it internally creates a bunch of threads that do some processing and, if they find something relevant, fire an event. My form frmMain (this is a windows forms app .net 3.5) has an instance of this class and is catching these events. Each time a...

Flex Event Dispatcher Questions......

Hi guys... I am trying to dispatch an custom YouTubeEvent from my Player.as and wish my Main.as would listen and create the video player...Apparently my eventHandler can't catch the event to create the videoplayer.......My flex debug mode is so screw up I can't even use it...My code is as follow..I really appreciate any reply or help....

How attach an event to a method in a common class?

Say i have the following two classes: public class User { public int ID { get; } public string Name { get; set; } public void ChangeName(string newName) { Name = newName; } } public class Mail { public void SendUserInfoChangeEmail() { t...