events

HelpRequested event not getting fired for a panel

Hi there, I was trying to write a form in C# in which the Help on the form is enabled. Now when I try to click the '?' button and then click the panel, the HelpRequested event is not getting fired. On the panel I have custom drawing. What can I do for this? Thanks, Datte ...

How to stop event propagating?

<script type="text/javascript"> $(function(){ $('<h2>Click</h2>').prependTo($('#container')).live('click',function() { return false; }); $('#container').click(function() { alert(1); }); }); </script> <div id="container"> </div> I don't want the click event to propagate to the #container,and that's why...

Flex AIR using Command and Ctrl keyboard events

I am writing an AIR application in Flex. The application needs to be able to handle shortcuts on both Mac and Windows. I have the shortcuts on the Windows side working, but the same application on a Mac doesnt seem to trigger the commandKey property on a Keyboard event when the user is also using another key in combination (ex. command...

C# ListView DragDrop Event Method Executing Twice Per Drop

The method executes twice in a row and there's no apparent reason for doing so. It happens in VS2010 Express (4.0) and in VS2008 (3.5). public GUI() { InitializeComponent(); this.lvwFiles.DragDrop += new System.Windows.Forms.DragEventHandler(this.lvwFiles_DragDrop); this.lvwFiles.DragEnter += new System.Windows.Forms.DragEve...

Custom Event Not Captured- why?

I am having a problem where I dispatch a custom event but the listener does not receive it (i.e. myHandler() in the code below). If I put everything in one mxml file, it works. When I separate the responsibilities in to separate classes, it fails. It is not clear to me what I am missing. Any help you be appreciated. Here is my code ...

Delphi Parent Form Buttons

Is there a way to disable the parent windows buttons? I have a "working" form that is called by a lot of forms, that I would like to disable the parent form buttons until it's finished doing it's thing. Then turn them back on. I'd like to do something that is attached to the OnShow event and onClose event. Thanks -Brad ...

Can an event listener be limited to only having one subscriber?

Is it possible to stop multiple subscribers from subscribing to an event? I have created a quick example snippet to give my question some context but unfortunately I can't test it right now because I'm not at my VS machine. The goal is to: Return an empty list if there are no subscribers. Return the return value of a single subscr...

How can I get jQuery to call an event handler when an image actually appears on-screen?

How can I use jQuery to trigger a callback of a JavaScript function when I scroll down and see a picture? I wish to delay loading certain images until they actually appear on-screen... Ideally, I'd be able to do something like: $('#img#').look_on() { ... So no images are loaded apart from those I have seen. ...

Where can I find a list of key codes for use with Cocoa's NSEvent class?

I'm looking for a comprehensive list of the available key codes that can be used with Cocoa's NSEvent class. The NSEvent class has a keyCode property, which is defined as unsigned short. The following code, when placed in an appropriate UI object, will echo the key codes as they are pressed: - (void)keyDown:(NSEvent *)theEvent { NSL...

Delegate fields related with events & Reflection

Hi again, now i have a more theorical question related with events and reflection. The question is: "Is or isn't possible to get the field of type delegate associated with an event via EventInfo?" Basically when you define an event (implicitly), the compiler adds a private delegate field to your class (the delegate is of the same type o...

Which event-driven applications are implemented in Haskell?

I've been looking at Haskell lately and it seems like a very nice way to watch programming problems from an alternative point of view - alternative to my usual imperative (I have a strong C++ background) view, at least. However, all the articles I see seem to deal with the same kinds of programming problems: Parsers Compilers Numeric ...

Consume events in MFC's CStatic and pass them to the parent

Hello, I am building MFC application where there is CDialog with child control derived from CStatic on it. I want to receive mouse events for CStatic control so I set "Notify" for it to true. Now I am able to receive message events through message map directly in MyStatic: class CMyStatic : public CStatic { afx_msg void OnLButtonDow...

How to Mirror Edits across a Table Cell and Text Field

The desired behavior is akin to the mirrored text editing field provided in Excel when a given cell is selected, allowing more space to view the contents of the cell. I have a JTable with 5 columns and n rows. Column 2 holds expressions that can be arbitrarily long, thus I'd like to provide a separate JTextField to work with for editing ...

please suggest me about Gridview event...

Hi , I have .aspx page . that Have the GridviewChild Within another gridviewParent. My GridviewChild has Columns with some controls.out of which it has Dropdown controls .I want to fill the Data in dropdowns GridViewParent GridViewChild Columns DropDownControl This is harachy tha...

Which event is fired before current record changes in ADOQuery and how NOT to change the current record?

In my application, there are these data components linked like so: DBGrid > (DataSource > ADOQuery > ADOConnection) DBNavigator > (DataSource > ADOQuery > ADOConnection) Whenever the user selects a different row from the DBGrid, or uses the DBNavigator, the ADOQuery's current record changes. Fine, but when the user makes some changes ...

Can plain Javascript objects have events?

Can plain Javascript objects have event attached to them? Say something like this: obj = new Object(); obj.addEventListener('doSomething', foo, true); I know i can do this with jQuery, but is it possible without any library? ...

Can I set IsHitTestVisible to false only for right-button events?

Obviously, the straightforward answer to the question is "No", but what's the best way for me to achieve that kind of effect? To explain, here's a bit of background... I have an app that displays an Image plus a couple of layers of overlaid shapes on that image. All of these are placed within a Grid cell, overlapping each other, with th...

How to catch an image capture event on Android?

Hi All, I am trying to find a way to listen to a built-in Camera application Capture event. I want my application to be triggered each time a picture is taken. Is it possible? I read here that it is impossible... If it is impossible then, maybe, there is another way to achieve it? For example receive a new file event and check if th...

how do I subscribe to an event in raised in another assembly

I have a solution which contains 3 project. One project handles asynchronous communinications. When it has completed it's callback, it raises an event SomethingCompleted. How do I subscribe to this event from another project in the same solution? I have the event handlers built in the receiving project but it does not see the event in...

Flex: Pass data from preloader to app?

I would like to track the customer experience in downloading and initializing my flex app. (a) Is there a way to pass data from preloader to the application? I would like to pass the time it takes to download and the time it takes to initialize. (b)Alternatively: Is there an event at the application level that corresponds to the preload...