events

Triggering a future event based on a current event

Hi folks, i would like to trigger an event sometime in the future based on an event that is currently happening. I do not expect the volume to be too high, so i care a lot more about simplicity than performance. For example: event A happens. i need event B to happen a day later (not time critical) system stores a record of event in d...

TreeView of many types with Master/Detail edit problems!

I have a TreeView wich has many types of items but they all inherit from a base class. Besides the TreeView there is a MasterDetail view for the selected item. Below the MasterDetail view I wan't to have a edit button that changes the MasterDetail view into edit view. I'm doing this by having the master detail view as a ContentPresente...

Can you recommend an good Events for Dummies link?

Can you recommend an Events for Dummies link? Using C# would be best. ...

How do I stop firing two events using sortable and droppable?

Hello all, I'm working on an interface for dragging and sorting questions and their choices. I have a toolbar on the right with the available questions/choices and the list of current questions/choices on the left. The list on the left is a droppable and a sortable. The items in the list on the right are all draggable and connected to t...

Why event bubbling and why not directly subscribe the click event?

I was going through an article on event bubbling in asp.net and came to know that although it is possible to subscribe to the click event of a user control's button from the containing page, "doing so would break some of the object oriented rules of encapsulation". A better idea is to publish an event in the user control to allow any int...

Android detect phone lock event

I want to be able to detect the phone lock event. When my app is running, if I press the red button (call end button/power button), the phone gets locked and the screen goes blank. I want to be able to detect this event, is it possible? Thanks Chris ...

HTML5 canvas: find out if click co-ordinates are inside a given rectangle

Hi All, May be some one has had similar experiences on this dilemma and can help me out here... Basically, I have a canvas element on which I draw several rectangles in a loop using context.fillRect (x, y, width, height) Now, I want some of the rectangles to be hotspots and respond to click events. I can find out the exact (x,y) of...

avoid browser reset from onclick event (prototype)

I have few anchors with a click event: $$('.someanchor').invoke('observe', 'click', somefunction ); When the anchor is clicked, the browser scrolls to top. I tried to insert return false at the end of somefunction, but it still scrolls up. Usually I would use something like: Event.observe('somelement', 'click', somefunction, false);...

asynchronous UI in java

I'm working on a Java program, and it's been over a year since the last time I used Java, so I'm a little rusty. This program uses Runtime.exec() to call other programs to do its dirty work, and needs to parse their output and update its own GUI accordingly in real time while the other programs are working. What's the best way to do th...

Handling a forced exit

Is there any good way to handle a forced exit in C#? I have a formless C# application that talks to an LCD over serial. Once the application is running, the only way to kill it is with task manager. The trouble with this is that the program needs to turn the LCD off when it is done, and it doesn't look as if my Application.ApplicationEx...

Callbacks / Events in C#

Heya guys, Iv'e pretty new to C# ATM and I seem to be having trouble with Jabber-Net Im trying to create a basic chat application that will connect users via Jaber Services, the issues im having are with the Callbacks. The main error I seem to get is about the "Event required but used like 'type'", or something along those lines.. Im...

What does it mean by Event ?

I have learned delegate in dotnet that is referencing any function. What does it mean by event coceptually? Is it any reference ? It has a middle layer and use delegates internally. But, what is that middle layer ? Actually, what can we do using event ? or Why should we use it ? Why does event has no return type ? Why is it public by ...

Updating EKEvent

Hello, I'm trying to make some changes to an EKEvent object in my calendar. I have an event for example from 1 a.m to 2 a.m. When I set the allDay property to YES, this event is changed correctly and appears in the all day section of the calendar. But it's not working the other way round. I'm setting the start and end time correctly and...

Propagate custom QEvent to parent widget in Qt/PyQt

Fist, apologies for the length of the question. I am trying to propagate custom Qt event from child widgets to a top parent widget in order to trigger some action based on event type instead of linking signals. Qt docs suggests that every event posted with postEvent() that have accept() and ignore() methods can be propagated (meaning e...

How to find out when user-created calendar events are about to start [Rails]

Hey there, I'm building an online calendar in Ruby on Rails that needs to send out email notifications whenever a user-created event is about to start/finish (i.e you get a reminder when a meeting is 5 minutes away). What's the best way of figuring out when an event is about to start? Would there be a cron task that checks through all ev...

Adding event handler and expression trees.

How to make lambda like this Action<EventHandler<TEventArgs>> adder = vs => GenericEvent += vs using expression trees. This code doesn't work: Expression<Func<EventHandler<TEventArgs>>> handler = () => GenericEvent; var vs = Expression.Parameter(typeof(EventHandler<TEventArgs>), "vs"); var adder = Expression.Lambda<Action<EventHa...

How can I handle ArrowKeys and < (Greater Than) in a Javascript function? Which event and which code (charCode Or keyCode)?

How can I handle ArrowKeys and < (Greater Than) in a Javascript function? Which event and which code (charCode Or keyCode)? I am very confused how to do this. I have read this link very carefully, Events and keyCode+charCode, but I could not find any solution for my scenario. ...

Windows C# CheckedListBox Checked Item Event Handling

I'm currently developing a Window app that uses CheckedListBoxes for certain aspects of the program. A problem I've encountered is that I have been trying to find which event is triggered when an item is checked so that I can enable a form button when any list item is checked. Problem is that I tried using the following; private void c...

How do event listeners work?

Do they repeatedly check for the condition and execute if the condition is met. Ex, how the OS knows exactly when a USB device is plugged in, or how MSN knows exactly when you get an email. How does this work? Thanks ...

image rotators in the same page with jQuery

Hello All, after a day trying to make this work, I finally decide to ask for help ;-), Since I'm a new at jQuery, I hope to find someone to help fix this issue. I have a portfolio page where I need to run the gallery in a growl for each single project. Everything works just fine until I'm adding a second gallery. The code that I have ...