events

Why isn't my WPF closing event being fired for system closes?

I have the following line in my Window stanza in the XAML file: Closing="Window_Closing" I originally thought that the web page here assured me that this event fires when you use the big X close method, Alt-F4 or close from the system menu yet that doesn't appear to be the case since my breakpoint on the Window_Closing() function ...

GWT eventbus handle multiple modules

Hi, I am working on a gwt project and we are using eventbus for communicating events between widgets. I have 2 modules and when i raise an event in one module, the other module is unable to receive it. How can i solve this.Any help?? ...

Instant value change handler on a GWT textbox.

I would like to update a text field instantly when typing in a GWT TextBox. My problem is that ValueChangeEvent and ChangeEvent handlers only fire when the TextBox loses focus. I thought about using the KeyPressEvent but then nothing would happen when performing a copy paste with the mouse. What's the simplest way to do that ? ...

IObservable vs Plain Events or Why Should I use IObservable ?

hi all, Well, MS introduced the IObservable interface as part of the .net FW 4 and i thought "great finally, i must use it !". So i dug deep and read posts and documentation and even implemented the pattern. After doing so i've realized that the basic implementation actually sends all the Observable events to all of its subscribers wi...

Passing Parameters into JavaScript object events using jQuery

I know there are a LOT of similar question to this, but I've tried them all to no avail...so thanks for any help. WHAT I AM TRYING TO DO: I want to pass one-to-many parameters into each checkboxes 'click' event upon registration (see below). WHAT WORKS: I can register the event WITHOUT any parameters, and the click event raises...but I...

Triggering a "Click" event without user input

I have a Windows Forms Link Label, "Refresh", that refreshes the display. In another part of my code, part of a separate windows form, I have a dialog that changes the data loaded into the display in the first place. After executing this other code, pressing "Refresh" updates the data correctly. Is there a simple way for the dialog men...

Event Handling an Abstract Class

Basically, I have a custom child form class which has events that will be passed to the parent. In the custom child form, I have a declaration of a "MustInherit" class that inherits the DevExpress User Control Class. The reason for this, is I have many user controls that derive from this base class, and the child form can have an instan...

FireFox and javascript Problems (event.keyCode or event.charCode or event.which not work )

hi my dear friends : i do not know what is going on my firefox! my aspx and javascript codes are like this : <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title></title> <script type="text/javascript"> function a() { alert('a'); //alert(event.which); //alert(ev...

Actionscript style events in Objective-C?

I'm a newbie doing Objective-C, coming from Flex/Actionscript development. I have an iPhone app with an UIApplicationDelegate conforming delegate called MyAppDelegate - it has a UIWindow. Instead of adding buttons, labels and whatnot directly to the window, I guess I'm supposed to make a child class of UIViewController for every screen...

flash action script 2: how can i create custom events?

Hiya. I would like to create my own events. In action script 3 I can just extend the event class and create my own Event Class. how can I achieve the same results using action script 2? thanks. ...

How to do event driven programming in C#.NET?

How do you make a event-driven program where the execution of the main flow is suspended whenever an event is raised and handled, until the event handler finishes? I created the following program using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Timers; namespace EventTest { class P...

How to discover if an Ext.FormPanel is changed

Hi, i've some Ext.FormPanel and i want to enable the "Save" button only when the user changes the values inside the form. How can i discover that the user changed some fields ? I've tried with form.on("change"), SelectionMode but without any success. Thanks ...

C# - Interfaces / Abstract class - ensure event is raised on method

I have an interface defined as IStore, with two methods: public interface IStore<TEntity> { TEntity Get(object identifier); void Put(TEntity entity); } I want an event to be raised on the success of Put (for reference, Put could store a row in a db, or file on the file system etc...) So, a class implementing Istore for type ...

Event that fires only when user moves the splitter?

I have a VB .NET form with a splitter control on it, and I want to save its position between program runs. I am currently handling the SplitterMoved event and storing the SplitterDistance. Then on program startup, I set the SplitterDistance to the saved value. However, sometimes the program resizes the splitter, raising the SplitterMo...

GWT domHandler not working for Internet Explorer

I added a domHandler for changeEvents. Following the answer here: http://stackoverflow.com/questions/3098694/enabling-and-disabling-save-button-on-a-gwt-page This works for listboxes in Chrome and Firefox but doesn't work for IE8. Does anybody have any recommendations? I rather not individually handle each textbox and listbox on our ...

Setting an event with DOM javascript

I am trying to set an event in JavaScript but it is not really working. I am pretty sure I am doing it correctly too. // in index.htm: function foo() { // Load gets code from a php file via ajax document.getElementById('div').innerHTML = load('phppage.php'); document.getElementById('element').onClick = func; } // in lib.js: func...

ServiceBase.OnShutdown and event logs in Windows .Net 3.5

I've written a custom service that overrides ServiceBase.OnShutdown(). Unfortunately, when I log to the event log, nothing is written. My guess is that the Windows event log was shut down before my service. Is there a way to order service shutdown so that my servce shuts down before the event logger? I don't want to have to write out to ...

Problems with event bubbeling (ScrollViewer)

I have a problem with bubbeling events. I manage to bubble events in borders, grid, stackpanel, but not in a ScrollViewer If you look at the example below you will notice that when you click the TextBlock the event is bubbeled up to the Grid. But when I include the ScrollViewer the event stops here and is not sent up to the Grid. Does ...

Is it okay to call canvas.drawWindow() from the "onload" handler?

The note at the bottom of this Mozilla wiki page currently says: "Using canvas.drawWindow() while handling a document's onload event doesn't work. In Firefox 3.5 or later, you can do this in a handler for the MozAfterPaint event to successfully draw HTML content into a canvas on page load." Which is fine, except that I tried it in Fire...

passing php variable

I have a PHP array: foreach($xpath->query('//a') as $element) { $linklabel[] = $element->textContent; $link[] = $element->getAttribute("href"); $i=$i+1; } I also have an HTML form: <form name="keypad" id="form" onSubmit="return pass(this)"> <input type="text" size="100%" length="25" value="" name="lcd"> <input type="b...