events

trigger body click with jQuery

I'm unable trigger a click on the body tag using jQuery, I'm using this... $('body').click(); even this fails $('body').trigger('click'); Any ideas?! ...

pthread-based event waking up only waiting threads

In my C++ program I have a class CEvent with trigger and wait member functions based on pthreads (running on Linux). Implementation is quite obvious (i.e. many examples online) if there is one waiting process. However now I need to satisfy the requirement that multiple threads are waiting on the event and should ALL wake up reliably when...

In Flash AS3, Is there anyway to detect a DoubleClick action without it detecting the MouseClick?

I have 2 seperate events that are not related to each other and each is attached to the Mouseclick and Doubleclick eventresponses respectively. However, during runtime, I find that even when I doubleclick, the Mouseclick action still gets activated. I've been trying to find a viable solution where the Mouseclick and Doubleclick can co-...

Is there a way to call the BeforeUpdate event procedure of any control in VBA (MS Access 2002 or 2003) ?

Hi, In VBA, I'm changing the value of a few controls in an Access form. I like to run the BeforeUpdate events of these controls after doing so, as it checks the coherence between fields : Private Sub ExampleProc1() Dim intCancel as Integer intCancel = False Me.Controls("Date1").Value=Null Me.Controls("Textfield1").Value=Null ...

Block while waiting for event

Hi, I have an external COM-object that connects to a server and then fire an event when the server is ready. The connect() call is thus asynchronously. My code looks (a bit...) like ManualResetEvent waitConnection; //This is the event that is triggered when server is ready public void onConnection_event(bool success) { if(success...

Possible to capture ComboBox "DroppingDown" event?

I have a System.Windows.Forms.ComboBox on a form and I want to capture the event just before the ComboBox's menu is displayed (something like "DroppingDown"). I can't seem to find a suitable event. Is capturing this type of event possible with a ComboBox? ...

Real time process communication in game development

If you make a game architecture that splits up system components (IE, rendering, physics, logic, input, scripting, etc) into different threads, how do you handle cases where real-time communication is necessary? For example, if a script wants to draw a box on the screen, it would ideally do this when the rendering component issues a "Fr...

Why events have no return types in .NET?

Events also 'does' something like methods, but they don't have return types and just voids? I am curious to know, Why is it so? and Why don't they return types? ...

What happens when an event fires and tries to execute an event-handler in an object that no longer exists?

In one class, ClassA, I have a timer object. In this class I register the event handlers for the timer elapsed event. In another class, ClassB, I have a public event-handler for the timer elapsed event. So I register the event-handler from ClassB in ClassA as follows: myTimer.Elapsed += ClassBInstance.TimerElapsed What happens if I we...

Different Javascript behaviour in different browsers

I'm doing a eCommerce website, but dealing Javascript is killing me. For example, for the following page, http://nordschleife.metaforix.net/118/118/index.php/sony.html It works as intended in Google Chrome, but not in IE or Firefox. For instance, clicking the up or down arrow for products that are down the page (e.g., tenth product) wi...

jQuery UI number spinner event question

Hi, I've been stumped on this problem for over a week :( Any insight into this problem would be hugely appreciated! How do I link a jQuery UI number spinner/stepper (http://wiki.jqueryui.com/Spinner) so that a label text value changes as the spinner value increments or decrements? ... <script type="text/javascript"> ...

Java Calender scheduling events

In my application i want to schedule the start of processing. In two ways first on a preset date or say like every Monday. In the case of a single date i can watch the time on a tread and start processing but when two are mixed i can't come up with a good solution. My initial thought was when application boots up i can schedule events t...

flash event listener for global events

I have a series of MovieClips, held within several MovieClips, that dispatch a custom move event that I would like the stage to listen for and interact with. Is there a way to add to the stage (or any Object) an event listener for any event of one type, regardless of where it was dispatched from? For instance, could I add to the stage a...

Swing: Problem distinguishing between user-induced and automatic components resizing (Writing a custom LayoutManager).

Hello! I'm trying to write an own layout manager. Components must be placed and sized relative to each other. This means: when the user drags or resizes an component, some other components (but not the one altered manually by user) have to be altered. Swing tells the layout manager to layout the components every time when some of them...

Triggering a checkbox value changed event in DataGridView C#.NET

Hi I have a grid view that has a check box cloumn, and I want to trigger a drawing even as soon as the value of the cell is toggled. I tried the ValueChaged and the CellEndEdit and BeginEdit, and chose the selection mode as CellSelect. As for the The first 2 events, the event was triggered upon the finishing of the edit mode, like movin...

Getting jQuery mouseout event to fire from all child elements

I have a table inside of a Div, containing 8 images, I want to fire a mouseout event for either the table or the div, but it doesn't fire. I'm guessing this is because the mouse is actually leaving each of the images, or the td, or the tr etc... is there a way to get the mouseout event for the entire table to propagate up so that it is...

C# MDI Event Help

I have a form which is an MDI container. In that form i generate 6 child forms each with a label: for (int i = 0; i < 6; i++) { Form window = new Form(); window.Width = 100; window.Height = 100; window.MdiParent = this; window.FormBorderStyle = FormBorderStyle.FixedToolWindow; Label label = new Label(); label.AutoSize = true; ...

Flex forcing resizing when the image source update is completed

Hello Flexers, I have what seems a straighfoward situation: I update the source property of an image, when the image is loaded i want to redraw the border skin to fit the new size of the image. newImgEdit.addEventListener(Event.COMPLETE, loadImgComplete); newImgEdit.source = myurl_ressource; private function loadImgComplete(evt:Event...

C# Form Move Stopped Event

Is there any event in C# that fires when the form STOPS being moved. Not while its moving. If there is no event for it, is there a way of doing it with WndProc? ...

Forwarding/relaying .NET events

My class has an event which external objects will subscribe to: public event EventHandler<MessageReceivedEventArgs> MessageReceived; However, an internal Listener object, running on it's own thread, will actually be originating the event. private class Listener { public void Run() { // events raised here which should...