event-handling

ItemUpdating not showing changed values in SharePoint event receiver

I'm trying to find how a field's value has changed in an ItemUpdat**ing** event receiver. The particular field's display name and internal name is Regions. As soon as ItemUpdating is hit, the value of the Regions field is identical for the following: properties.AfterProperties["Regions"] properties.BeforeProperties["Regions"] propertie...

Static event does not update UI

I am using c# and asp.net webforms and I have an event handler on the code behind of an aspx page that handles a static event of a DisplayToUI Class. The code i have works like this:- 1) Default.aspx code behind calls the method WebserviceGateway.request() 2) WebserviceGateway.request() makes a method call to the webservice and also m...

GWT: Getting events in a button in a panel used as a Table cell

I'm using GWT 1.6. I am creating a panel that contains a Button and a Label, which I then add to a FlexTable as one of its cells. The Button is not receiving any Click events. I see that the table supports determining which Cell is clicked on, but in this case, I want the Mouse events to propagate to the various widgets inside the cell...

Listen to child MenuItem Click

Is there a way for a parent MenuItem to be notified when a child MenuItem is pressed. For example, I you have <MenuItem Name='a'> <MenuItem Name='b' Header='...'/> </MenuItem> how can I add an event handler to a to be notified when b is clicked. Ideally, the Click event would be either a tunnel or bubble event but this is not the ...

How to read input in a html page with javascript without focus in one field

Hi. I want to ask how can someone read keystrokes while in a html page without having focus in a particular field. Is there some event that i can hook a method that reads input? Thanks in advance. PS. We use JQuery if that helps. ...

Attaching event to a control

How to insert an event to the aspx.cs page. I have one asp:button and i wish to add an event of that button in the aspx.cs page. how it done ...

How to call an EventHandler in a parent class

Hello everyone I have added an EventHandler for the Click-event to a picturebox but on runtime this handler is never called (the debugger shows me that it is added to the control directly but when I click on the picturebox nothing happens). I assume it has something to do with my inheritance. I have a usercontrol called AbstractPage (i...

EventHandler inside a TFrame ?

I have a TForm (TVehicleEditForm) with 3 identical TFrames (TVehicleUnitFrame) inside. The idea was that every instance of the frame handle own events by a eventhandler inside the frame. The problem is that the eventhandler is not called. I have tried to assign the eventhandler by code inside the frame by overriding the Create method b...

What is the order of event dispatch in Flex 3?

I have a checkbox that is bound to a property: <mx:CheckBox label="Show All" selected="{showAll}"/> I want to trigger an event when the checkbox is toggled that will read the value of showAll after a change: <mx:CheckBox label="Show All" selected="{showAll}" click="_list.refresh()" /> Where, in this case, _list is an ArrayCollectio...

Java event handling

import java.awt.Color; import java.awt.Dimension; import javax.swing.JPanel; import javax.swing.Timer; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartMouseEvent; import org.jfree.chart.ChartMouseListener; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.entity.ChartEntit...

WPF - creating content for a tabitem dynamically

Hi, I'd like to set the content of a tabitem dynamically, based on the content/actions taken on previous tabitems. I'm advancing through the tabs via a command like: tabControl1.SelectedIndex++; However, the Loaded event doesn't get fired after this like I thought it would. tabControl1_SelectionChanged() is getting called, however....

TApplicationEvents as dynamic component or static for tracing called routine in Delphi.

Hello and good morning! Unfortunately I am not writing this question from my Developing PC so I might do some mistakes. Please sorry about it... So - my question - what approach you use to implement error logging in your application? In web ( http://delphi.about.com ) is nice event handler, but it just copies system error in file, but ...

Best aproach to java like adapters event-handling in C++

I'm doing some research in how to implement a event-handling scheme in C++ that can be easyest as its to implements an adpter to a class in java. The problem is that with the approach shown below, I will need to have all adapters already implemented with its function overriding in the devived class (because the linker needs it). On the o...

Reference 'this' in dynamic event handler

In my 'myClass' class, I am using Reflection.Emit to dynamically write an event handler for one of the myClass class' members. I have done this successfully. Now, I want to modify the event handler to call one of the instance methods in the myClass class. However, I cannot figure out how to push a reference to 'this' onto the MSIL sta...

Handling events fired by Property of ActiveX Control in HTML/Javascript

The following HTML object represents an ActiveX control that has a property named SubSystemA: <object id="MainObject" CLASSID="CLSID:2C327457-D12F-4FC4-BFC2-D7C029003D07" width="0px" height="0px" > <embed name="MainObject"></embed> </object> SubSystemA is a COM object implementing some interface with methods, propertie...

How to handle dynamic GUIs in .net

Hi All, I've come accross a problem, that is probably seen pretty often, but has never really been discussed here. In my Gui, I'm adding Controls in a for loop to a Flowpanellayout. The point is to display "reports" from a database. It has to be dynamic, because the number of reports can be different from day to day. Pseudocode Addi...

C#: Any reasons why you should not declare an event backing field protected?

Are there any reason why you should not declare an event backing field protected? For example to prevent having to create OnSomeEvent methods for all your events. For example like this: protected SomeEventHandler someEvent; readonly object someEventLock = new object(); public event SomeEventHandler SomeEvent { ...

C#: Initializing an event handler with a dummy

I've seen this sort of code some places: public event SomeEventHandler SomeEvent = (s, e) => { }; Is that a recommended way of doing things? What does it solve, and does it have any noteworthy side effects? Will I still have to do null checks? Or is that exactly what I don't have to do any more? Will garbage collection still work as i...

Mouse position using jQuery outside of events

I need to get a hold of the absolute mouse position / coordinates (X and Y) using (preferably) jQuery like in this tutorial but outside of any JavaScript event. Thank you. ...

Do javascript event listeners need to be removed prior to removing the element they're attached to?

Suppose I have attached a variety of event listener to various form elements. Later, I want to remove the entire form. Is it necessary (or suggested) to unregister any event handlers that exist on the form and its elements? If so, what is the easiest way to remove all listeners on a collection of elements? What are the repercussions of...