double-click

JTextArea - selection behavior on double / triple click + moving mouse

送分小仙女□ 提交于 2020-02-22 05:36:30
问题 The problem: when you double click on word in JTextArea it is marked, but when you don't release the mouse button and try to mark next word, it is not marking whole word, but single characters instead. It should mark the whole words (not single characters) when moving mouse (on double click). That's literally the default behavior in all programs which I tried, like: Notepad, Firefox, Chrome, Word, even Netbeans, etc. Same thing with triple click (when holding and moving the mouse should mark

Double-click DataGridView row?

孤人 提交于 2020-01-29 04:36:24
问题 I am using vb.net and DataGridView on a winform. When a user double-clicks on a row I want to do something with this row. But how can I know whether user clicked on a row or just anywhere in the grid? If I use DataGridView.CurrentRow then if a row is selected and user clicked anywhere on the grid the current row will show the selected and not where the user clicked (which in this case would be not on a row and I would want to ignore it). 回答1: Try the CellMouseDoubleClick event... Private Sub

How to disable double clicks or timeout clicks with jQuery?

↘锁芯ラ 提交于 2020-01-21 10:10:06
问题 I have an anchor which is using jQuery .click event to start a few functions. jQuery(document).ready(function(){ jQuery('a.slide_circ').click(function(){ do_all_functions(); return false; }); }); This is the code in short.. Its working as it needs to, every click on anchor class slide_circ start do_all_functions. But I have a problem there. If user make double clicks they run 2 times or more the functions... And the how idea go to hell. I think that I need to disable the double click some way

Running .jar file - Double click vs. command line execution

雨燕双飞 提交于 2020-01-21 10:04:46
问题 I have a java desktop application that contains the following code: JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); System.out.println("check1"); int intResult = compiler.run(System.in, System.out, foutErrorFile, strvalidatePath); System.out.println("check2"); When I run the corresponding .jar file of this application by executing "java -jar name.jar", both check1 and check2 gets printed and app works fine. But when i try to run the jar by double clicking the .jar file, I found

Tool Strip Container Tools Strip Lost Focus and Double Click

こ雲淡風輕ζ 提交于 2020-01-16 19:40:54
问题 VB.Net 2008 Express Edition "Form1" has a ToolStripContainer1.TopToolStripPanel which contains a ToolStrip with buttons. The buttons work on ONE click when "Form1" is active. If I click on another window and then return to "Form1" the ToolStrip buttons take TWO clicks to activate. The first click returns focus to "Form1" and the subsequent click fires the button event. I want the buttons to work on the first click and not require two clicks. Note that ordinary buttons on "Form1" that are not

How can I avoid getting error code 0 on Google Custom Template request?

本小妞迷上赌 提交于 2020-01-14 07:33:11
问题 I use NativeCustomTemplateAd in my Android app to display some banners in my app's Home page screen. Lately I got some reports that on some occasions these banners are not displayed, so I've triggered an analytics event every time this happens. Turns out that it happens for more than 10% of my daily active users. After a lot of research and a long discussion with someone from Google support, I've found out that: it happens on any Android version but more than 80% on Android 8.0.0 if I restart

toggle on double click

冷暖自知 提交于 2020-01-06 13:51:27
问题 looking a way to make a toggle on doubleclick, this is my code: $('#mydiv').toggle(function() { $('#post').css({'height' : '188'}); }, function() { $('#post').css({'height' : '48'}); }); 回答1: $('#mydiv').dblclick(function () { $('#post').height($('#post').height() > 100 ? 48 : 180); }); Or may be you want this: $(".generic-expand-button").each(function () { $(this).dblclick(function() { $(this).closest(".post").height($(this).closest(".post").height() > 100 ? 48 : 180); }); }); 回答2: Use

Double-click beavior on a TreeNode checkbox

和自甴很熟 提交于 2020-01-03 15:57:40
问题 I have a TreeView populated with TreeNodes having icons and checkboxes. I've been tryig to disable the checkig/unchecking ability of some of them discarding the event in the BerforeCheck method. This works fine, until I double click on the checkbox: the image of the checkbox is the opposite of its real state (it shows a check mark if the status is Checked=false ). I've tried to fix that changing the StateImageIndex manually in the NodeDoubleClick and BeforeClick method with no success. Even

how to detect double Click in NSTextField

怎甘沉沦 提交于 2020-01-01 17:03:33
问题 I have a custom NSTextField and I'd like to detect double clicks by the user in the text field. My goal: I want to be able to double click on a parenthesis in an expression, such as "(2+2) = 4" and have it select everything inside the matching parentheses. Thought I could do this with... - (void)textView:(NSTextView *)textView doubleClickedOnCell:(id <NSTextAttachmentCell>)cell inRect:(NSRect)cellFrame atIndex:(NSUInteger)charIndex; but it never gets called in my custom NSTextField. Then I

TreeView re-grabs focus on Ctrl+Click

一世执手 提交于 2019-12-30 06:57:05
问题 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 a Click (or MouseClick) handler and open the other form when the Control key is pressed, it opens the other form correctly but returns focus to the original