the context
i use Spooler Events API to capture events generated by the spooler when a user prints a document ie.
FindFirstPrinterChangeNotification
FindNextPrinterChangeNotification
the problem
When I print a document on the network printers from my machine no events are captured by the monitor (uses the fuctions above)
Notice
E...
I've got a Form which is a mdiContainer. When the Form hasn't got a child, I want to capture the doubleClick event when a user doubleClicks the clientArea (same behavior as Photoshop).
But when I set the doubleClick event, nothing happens.
How can I achieve this?
...
I have a .NET WebForm that calls a remote script via HTTPWebRequest/Response. Recently I started noticing that the button click handler that calls this script will fire twice - but only if the first request to the external resource takes longer than a minute or so. If it's over that threshold, the entire event handler seems to fire twice...
I am using an event-based API and want to have a certain event handling method be called only once. (Note that I have another method which is always handling the event, but I want to add another handler for certain situations and have it only execute once.)
Is it possible/encouraged to unsubscribe from an event inside the event handler?...
I am using Gtk2Hs (EventM module) to handle GTK events within Haskell. Is it possible to manually (re-)fire an event?
Upon detecting an event on one widget, I want to refire this event on another widget.
I am using Gtk2Hs version 0.10.1 and GHC version 6.10.4.
...
Question says it all really, but I don't mind if any answers are AS2 or AS3 solutions, just curious really - seems weird that I couldn't find out how to do this really quickly.
...
I have a dropdownlist control in an edititemtemplate for a details view defined like this:
<asp:TemplateField HeaderText="Primary Use">
<EditItemTemplate>
<asp:DropDownList ID="ddlPrimaryUseEdit" runat="server" OnDataBinding="DropDownList_DataBinding"
SelectedValue='<%# Bind("PrimaryUse") %>' ToolTip="Primary Use">
<asp:List...
Hy guys,
I am working on a project developed in JEE 5 environment. I want to know how I can declare a Hibernate event listener so that I can be informed when CRUD operation are performed.
I've read that I must declare in the Hibernate configuration file *cfg.xml something like this:
<hibernate-configuration>
<session-factory>
...
Problem is when I press a key over a radio button, element MyFunc fires twice - once for "onkeypress" event, another time for "click" event.
Question "Why?" I need to handle this by two different ways, but now I can not recognize what initial event was. When I click a mouse it fires just for "click" event.
<ul>
<li>
<input...
When must we use this operator by events? What is its usage?
...
If I remove an element from the DOM which has event handlers attached, and subsequently add an element with the same ID somewhere, will the new element have handlers?
...
This sounded like something almost impossible to do when it was presented to me. I know you can display a dialog box to confirm when leaving a web page. But is it possible to display a dialog box when leaving a site?
I haven't been able to find/create anything that can read the address bar and know that you're leaving the site.
...
I know that in C#, there are several built in events that pass a parameter ("Cancel") which if set to true will stop further execution in the object that raised the event.
How would you implement an event where the raising object was able to keep track of a property in the EventArgs?
Here is a WinForms example of what I am trying to do...
Sorry about the title, I couldn't think of a better way to describe the problem. Basically, I'm trying to implement a collision system in a game. I want to be able to register a "collision handler" that handles any collision of two objects (given in either order) that can be cast to particular types. So if Player : Ship : Entity and Lase...
Hi to all,
i'm developing a multi-threaded application and i'm here to ask for a little help :) As i don't have much experience in multi-threading, especially in win32 API and this is my very first experience with it, i just wanted to check if I'm on the right way with my abstract model. I have read a reasonable amount of literature be...
I'm writing an application for Mac OS X 10.6 and later in C++. One part of the application needs to simulate mouse movement and mouse clicks. I do this currently by posting CGEvent objects using CGEventPost(kCGHIDEventTap, event);.
This works, for the most part - I can simulate mouse movement and clicks just fine, but it seems to fail i...
If I do this
stuff.addEventListener(FooEvent.NAME, function(e:FooEvent) {
dispatchEvent(e);
}
I get a runtime error saying that Event cannot be converted to FooEvent.
However, it works fine if I do:
stuff.addEventListener(FooEvent.NAME, function(e:FooEvent) {
dispatchEvent(new FooEvent(e.things));
}
Why?
...
I am trying to use the focusout(http://api.jquery.com/focusout/) function in jQuery, to perform a function after the user focus away from an input form field, but it's not working.
Here is my code:
$("#employee_id").focusout(function(){
var employeeId = $("#employee_id").val();
if(employeeId == '') {
$("#employee_id").after('<d...
i have a databound datagrid in vb.net 2008. This is a program where i use the double click event multipal times.. but for some reason on a new form it's not working anymore. In code behind i selected the datagrid and double click event. when i double click on teh grid in debug mode, it never fires off the event(i put a breakpoint in)....
I'm building a little menu item using Prototype/Scriptaculous.
The little test I have setup uses Effect.Scale on a menu item. I'd like the item to scale upward and push the other element up with with it when you hover over the menu item.
I have the ul.nav set to a specific height, but the scaled element seems to be positioned absolutel...