I'm looking for the right way to handle "mouse held down in one spot" events in my NSView subclass.
I am familiar with Cocoa's mouseDragged: event, but it is only triggered when the mouse moves. If the mouse stays in the same position, no drag event is triggered. Similarly, mouseDown: is only fired when the button is first pressed. My v...
I have created a #logo DIV that consists of a smaller #circle DIV & h1. The #circle acts as the DIV/canvas that my Raphael.js object, a circle, is rendered in. My goal was to make it so when a user hovers over the #logo DIV the Raphael.js circle and h1 will get animated but I ran into some problems.
For some reason my Raphael.js circle...
I'm developing a web chat and I need to raise an event when the conversation has changed so the page title changes so one user can know that the other user has written anything.
So I tried the code:
addEvent(window,'focus',function(){ alert(1); } );
and
addEvent(document,'focus',function(){ alert(2); } );
but it does not work.
...
Hi, I would like to catch as an event each time that the focused application on Windows change, preferently in C#. I need to prevent that my co-workers can send emails from my Outlook account when I stand up.
Thanks for your help.
...
I have a custom user control that consists of a dynamic list of controls, along with a static button that is declared (along with the OnClick declaration) on the aspx page. The button shows or hides a panel containing the dynamic control list.
I am finding a problem that I presume is related to the dynamically added controls, where the...
I'm trying to call an event from my mocked object. I'm doing it like:
importObject.Raise(x => x.RequestImportLevel += null, false, false, true, importLevel);
the last parameter required to be passed by reference. So, i'm getting an exception
Parameter #4 is System.Int16 but
should be System.Int16&
What can I do to handle this...
Hey guys,
So I have a JFrame which I've added a custom JPanel component.
The JPanel component has a button that I want to attach a listener to in my JFrame.
What is the best way to do this?
...
I could not stop the "onClick" event ?
If i just use the dom node with the "onclick" event then dojo.stopEvent() works but not with the widget's "onClick".
I am getting the error "Unable to load page ......status 0". I found out that this happens when the page refreshes while the Ajax call is being executed. I am posting my code.
Any he...
I can hook into the change event of the select fine (Which will cause the select to close), which is not a problem. But I also need to detect when the select tag is closed by way of clicking on the screen elsewhere.
So far everything I've tried hasn't worked; body click, body focus, select blur, select focusout are among the few combina...
This is something I'd expect to be quite straightforward, but after a couple of hours browsing Visual Explorer online help and ploughing through various forums, I'm still at a loss...
Basically, I'd like to be able to create a custom Windows event which sends a vector of short integers to its recipient. I'd actually like to create the e...
It works on IE7 and mozilla, but on Chrome when u set param wmode: "transparent" it doesn't react to mouse event... Any solutions?
...
Hi,
I am trying to do a bit of asynchronous programming, but my Java skills are a bit rusty...
Here's my code:
private static String uname="xxx";
private static String pword="xxx";
private static int productId=82;
private static String sessionToken="";
public static void main(String[] args)
{
BFGl...
I'm working to build a web app that uses the WebKit Touch Events JS API. How can I QA this app on my mac with touch events, and not be forced to swap between developing on a mac and testing on an iPhone. Ideas?
...
Typically in the property setter of an object we may want to raise a PropertyChanged event such as,
public event PropertyChangedEventHandler PropertyChanged;
protected void Notify(string property)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(property));
...
Can anyone suggest the best place to add solution or project events, such as ProjectAdded, to a Visual Studio add-in?
If I do this when the add-in connects then there's no solution loaded, so how can I tell when a solution has been loaded?
For example, if I write an event to handle project items being added, where should I attach this?...
I have a unordered list of items. When it prints to the console, it shows up as a "HTMLUListElement". Can I register jquery's keydown event to this element of the page? Right now it's seems? to be working as if I keep that function in there, the page eventually will crash (Chrome says it's unresponsive).
...
I am having issues with UIButton with the iPhone SDK. I've determined that when I have a UIButton held down when the parent is removed (and the uibutton subsequently removed), I get some strange behavior. In my case, the app stops receiving any input whatsoever, as if the cleaned up held-down button has hijacked the input system someho...
Hello,
I am in way over my head, and am hoping anyone here can help.
I am working with an application that is running on Windows Mobile OS, version 5 and/or 6, which is written in Embedded C++. The problem is that controls in the app get all messed up and moved around when the user does something to switch the display orientation, such...
I am creating a class that derives from the WPF RichTextBox control and I need to execute some code in the copy and paste events.
I understand that, whenever possible, it is best practice to implement event-based code in a derived class by overriding the base class method that raises the event. However, no such method exists in this cas...
i've loaded external swf into ScrollPane and i need to dispatch click event to this external swf. is it possible? ScrollPane.content.dispatchEvent(new MouseEvent(MouseEvent.CLICK,true)); doesn't work. this is obvious cuz ScrollPane.content is an DisplayObject and it have not CLICK event...
I can't use MovieClip as container for external...