events

Winsock accept event sometimes stops signaling (WSAEventSelect)

I have a problem with a piece of legacy c++/winsock code that is part of a multi-threaded socket server. The application creates a thread that handles connections from clients, of which there are typically a couple of hundred connected at any one time. It typically runs without a problem for several days (continuously), and then suddenly...

GetInvocationList of an event in VB.NET

Hello, I am trying to learn some WCF principles by following an example of a WCF application (from Sacha Barber). Now I would like to convert the following function into VB.NET private void BroadcastMessage(ChatEventArgs e) { ChatEventHandler temp = ChatEvent; if (temp != null) { foreach (ChatEventHandler handl...

How to use LoadingRowGroup in SilverLight DataGrid

Hello, I want to use LoadingRowGroup event in SilverLight DataGrid to display a group summary. I have an event: void dataGrid1_LoadingRowGroup(object sender, DataGridRowGroupHeaderEventArgs e) { // e.RowGroupHeader } but I don't know how to use e.RowGroupHeader to set group header value. Maybe I should us...

Column moved [finished] event in JTable

How should I detect that column moved action is finished in JTable? I've added columnModeListener to my column model but the problem is columnMoved method is called every time a column moves (by certain pixels). I don't want this behavior. I just want to detect when the column dragging is finished. columnModel.addColumnModelListener(new...

How to avoid the button events on Refresh of page.

I have .aspx page that page inserts the data to the database on a button click. But when i press the button it is going right. i m getting the Successfully message as " successfully inserted data". In this situation if i press "F5" or Refresh the page it is firing the button click event. Why it should be ? How to avoid this condition ? ...

Newbie Java developer questions - inter class communication with events

Hi All Please forgive the very basic nature of this questions - but we all have to start somewhere. I've done some googling but all answers seem to relate to UI Events. I am creating a very simple android app that will display your location on screen. I have my main class (HelloAndroid at the moment) that extends Activity and I have cr...

Jquery - when attaching to certain events, original event handlers stop working

Hi all, I tried being specific in the title, I hope it explained what I meant. I've got several control in my web page. Some of them are quite complex, built by other people, and some of them I cannot change. Now, I wanted to add my own functionality to certain controls, say... User hovers over a button and show him an image. Problem i...

how should i refer to the calling object within a handled keyboard event in javascript

hi I am writing a javascript widget which handles keyboard events. The issue in question arises when i show a div and want to hide it when someone presses esc. what's the best way to achieve the following (i am using jquery in this project ) var escToExit = function(e){ // code to check for esc // i then want to call the instance ...

Windows Forms Binding Problem: How to know if user has changed a value

I currently have a windows form application composed of a textbox and two buttons (previous and next) The textbox is bound to the name of a Person on a list. Previous and Next button changes the position of the BindingManager by 1 (either increment or decrement). using System; using System.Collections.Generic; using System.ComponentMo...

MooTools: Attaching to destroy() event

There's a div element on my page. When the page loads, I want to specify somehow that after destroy() is called on this element (based on what the user does in the UI), that a function I specify fires. How can I attach to the destroy() event? ...

Qt: How to send an event to the operating/window system?

I want to create an event in one Qt application that can be picked up by a seperate Qt application running at the same time. The normal sendevent function requires you to name the object which will receive it but I can't use that, I want it to be like a keyboard press event which filters through any open programs in the OS. Does anyone k...

Handle multiple events on a HTML table row

I have an HTML table which has an onClick property on the row which navigates me to another page. On this table I want to add a button, or an anchor tag which should do something else; e.g delete the row of that table. By default, on clicking the button, it executes that JS function and then the Row JS function. How can I set it so that...

QGraphicsView accepted events

Hello everyone, I am using the Qt Graphics View framework to create a scene and attach multiple views to the same scene, where these views render a 3D openscenegraph scene as background and the 2D drawings are kind of overlays. I am trying to intercept mouse/key events in my OverlayViewport class (inherits QGraphicsView) and navigate t...

Alternatives for registering Events on the stage in AS3?

Hello, I am programming a little software prototype as Flash/Actionscript3 application. Currently I registered some Events on stage - but it is cumbersome since stopPropoagation() needs to be used all the time. As Example: I am having a element shown via mouseclick would and a event for closing the menu on stage. Without using stopPro...

Handling recurrent events

I am building a site that acts as some kind of calendar. I am struggling over finding a way to handle reccurent events, i.e. events that are noted as 'daily,' 'weekly', 'monthly', 'quarterly' and so on... I've tried different approaches, but all end up being way to slow, or unmanageable. I'd like some hints about how I could handle that...

make AppleScript program that listens systemwide for shortcuts

I'd like to create some kind of background process that listens to all keystrokes event and acts consequently (for example does some action if CMD-A is pressed while in Finder.app, or more complex things, like sequences to create shortcuts like in emacs..) But how can I listen to keypresses systemwide on SnowLeopard? I thought of Apples...

JQuery event model and preventing duplicate handlers

Once again I want to load a page which contains its own script into a div using $("divid").load(...). The problem I face is related to events. Let's say we trigger("monkey") from the parent page and on the loaded page we bind("monkey") and just do an alert("monkey bound"). If the same load method is called multiple times, the bind is ...

Dynamically Subscribing to Events in RhinoMocks

We're currently migrating from NMock2 to RhinoMocks and we're having trouble replicating this code: foreach (EventInfo e in typeof(MarketMapPopupIMVPView).GetEvents()) Expect.Once.On(mockView).EventAdd(e.Name, new TypeMatcher(typeof(EventHandler))); Essentially this was placed inside a template for MVC controls to ensure that deve...

In my custom component, how can I augment the mouse-enter and -leave events?

Hi, I am making a custom Panel component which derives TPanel. I want for my new component to have some code executed on the OnMouseEnter and OnMouseLeave events, however, i do not know how to implement it. I see that TPanel has published properties OnMouseEnter, OnMouseLeave. How do i override those and add some of my own code? The...

Trapping general UI activity within an iPhone app.

I am developing an iPhone app that polls an internet web service. The poll rate will decay from once every 20 seconds to once every 15 minutes if the iPhone is sitting idle in a dock running my application. If the user taps the screen or begins moving around the UI I need to revive the polling rate back up to 20 seconds. Is there a univ...