click

Java : ignore single click on double click ?

Hiya - can anyone think of a good way to ignore the single click that comes with a double-click in Java ? I'm looking to have different behaviors for each such that: single-click paints crosshairs on the click point double-click selects an object on the screen, but should not paint crosshairs on the click point ... can anyone think...

Single click handler on Silverlight page

Is there a way to catch a MouseLeftButtonDown (or other mouse event) at a page or user control level and then be able to determine which child control was actually clicked? ...

TreeView re-grabs focus on Ctrl+Click

I have a WinForms TreeView control that I would like to use to open another form based on which node is currently selected. I want to open that other form when I Ctrl+Click on the node. Currently, it works the way I would like if I open the other form in a DoubleClick handler (and double-click on the node, obviously); however, if I use...

Click on span with padding

I have a span with no text, it looks like an image, it has background and padding. But it doesnot execute onclick event. What to do? Do I need obviously change span to everything else? ...

Adding ClickEvent on dynamic LinkButtons in OnLoadComplete

Hi, I'm creating a file-browser in ASP.Net but I have run into a problem which I believe relates to event-wireing on dynamic controls. I'll explain what my code does here: When my page loads (OnLoad) i call a method (createStuff()) that create a number of linkbuttons (representing folders in a current directory) which are wired to an e...

Audible 'click' in IE when using the jQuery .click() event and <a href='#'/>

I often use links with href='#' when calling ajax resources. I noticed that IE makes an audible "click" when clicking these links. Here's a workaround: $("#element") .click(function(){return false;}) .bind("click", function(){ alert(this); }); HOWEVER, when I try to encapsulate this functionality in a jQuery plugin, I'm not succes...

C# TreeView.GetNodeAt() problem with clicking images.

Hi. I'm using the click event on the TreeView to do some stuff when a node is clicked in the TreeView. I do this by getting the node that is click on by calling GetNodeAt() with the mouse coordinates, like this: private void TreeView_Click(object sender, System.EventArgs e) { MouseEventArgs mouseEventArgs = e as MouseEventArgs; ...

jQuery mouseover invoking a click

New to jQuery but quite fascinated with it and really loving it. Starting to turn me off, though, with this problem. Would really appreciate any help. Spent the last week trying to make heads or tails out of it. I apologize if this problem has been posted before. I have a list of products. Each product is enclosed in a <div>. Insi...

Store mousedown locations

My cocoa app calculates the location for every mousedown event. The next time the mouse is clicked, the location is overwritten by the new one. How can I store the locations? Is it possible to create an array with mousedown locations? Thanks ...

Making an array of NSRect values in mousedown method

My cocoa app calculates the location of every mousedown event. It also checks whether the location is located inside a rectangle using NSPointInRect and while enumerating over an existing mutable array with values of the rectangles. I'm using an if-statement to add the rectangle values in which the mousedown event is located to a new arr...

Fill-in color on triangle using mouse click

I was wondering how to fill in a triangle shape with color when a user click on the triangle. So far I am using txt file as input file to read the coordinate of the triangle to be drawn on screen. ...

ASP.net Delphi dynamic imagebutton onclick event

I'm having a bit of trouble with an old delphi.net application. I need to show some thumbnail images on a specific location on the page, and when the user clicks the image show the image. The images are rather small so I havn't bothered with thumbnail generation. The problem is that I can't get the onclick event working. Here is m...

Clicking HyperLinks in a RichTextBox without holding down CTRL - WPF

I have a WPF RichTextBox with isReadOnly set to True. I would like users to be able to click on HyperLinks contained within the RTB, without them having to hold down CTRL. The Click event on the HyperLink doesn't seem to fire unless CTRL is held-down, so I'm unsure of how to proceed. Thanks for your help, John ...

Detect when link is activated - either by click or tab and enter

Hi Guys Just wondering if anyone knows of a way that wiring up jquery to run a function for when a user clicks on a link or tabs to a link and hits enter. I want to intercept that activation of a link and perform an action before the page is changed, but I want to do it in either case. Cheers Anthony ...

Google Maps - Add two markers (directions)

Hi forum. Playing around with Google Maps these days, with some directions. I have a map that gets the directions and address (reverse-geocoding) when dragging and dropping the markers. If there is two nodes on the map (http://dev.korebogen.dk/gmap/) the script is working fine (click set directions) - but I need to add a click event s...

aSlot.click do |button, left, top| # Help?

In what format is 'button' stored? if button == 1 doesn't work for testing left mouse button click. ...

Raise button (or any control) click event manually. C#

Can anyone tell me how to raise click event of button control (or for that matter for any event). Platform: .net 2.0/3.0/3.5 Language: c# Domain: Windows Application, WinForms, etc. ...

iPhone: how to make key click sound for custom keypad?

Is there a way to programmatically invoke the keypad "click" sound? My app has a custom keypad (built out of UIButtons) and I'd like to provide some audio feedback when the user taps on the keys. I tried creating my own sounds in Garageband, but wasn't happy with any of my creations. If there isn't a standard way to invoke the key cli...

Binding function to multiple elements with Jquery

Hi, I have this small problem with jquery: I need to do something like this: $(document).ready(function(){ links = {}; links.a = "Link a"; links.b = "Link b"; links.c = "Link c"; for (x in links){ $("#" + x).css("border","1px solid #000"); $("#" + x).click(function(){ alert(x); }); } }); </s...

Flex Double Click Behaviour, isn't it strange or it's just me ?

Hi all, When using double click enable on any component, sometimes i have trouble activating the double click. I realised that if I move between my fast paced single click it will NEVER fire a double click event. If however if I do not move the mouse between the clicks then the double click is fired. Before i start using timer to get ...