QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

How do I determine if a mouse button is pressed and moving over a form?

Mouse Handling - Windows Forms FAQs
Catch the form's MouseMove event which is called when the mouse moves over the form. To determine if a button is pressed during the move, check the event arg's Button property. The code below draw's a line on the form as the mouse moves over...

How do I know which mouse button was pressed, and how often?

Java Programmer's FAQ
To handle mouse events you have to implement the MouseListener interface, or derive from the MouseAdapter class in order to use one of the mouse handling methods. The MouseEvent argument passed to the handling methods contains fields that say which button was pressed, and the click count. Use code like this. public void mouseClicked(MouseEvent m) { boolean leftButtonPush = (m.getModifiers() & java.awt.event.InputEvent.BUTTON1_MASK) != 0; boolean centerButtonPush = (m.getModifiers() & java.awt.

I have a two button mouse, can I emulate a three button mouse?

Cygwin/X Frequently Asked Questions
Yes. Pass the -emulate3buttons timeout_in_milliseconds parameter to XWin.exe, where timeout_in_milliseconds is the, optional, maximum number of milliseconds between a button release and opposite button press that will trigger an emulated third button press.

RCT just crashed when I pressed the Right mouse button! Why?

Frequently Asked Questions - Games - http://maxpages.com/rol...
It’s caused by a conflict between the mouse driver and Microsoft’s DirectInput code. One driver which causes this problem is the ‘Genius NetMouse’ mouse driver, and it can be solved by removing the driver from Windows, and then installing a ‘standard serial mouse’ driver, or ‘standard PS2 mouse’ driver. You must find and remove the file named RCT.ICD from your Hard drive. The easiest way to do this is to use the Windows 'Find' feature.

Is it possible to know which button user pressed in mouse events?

Java Language FAQs
Use the following code to know which button is pressed. public void mousePressed( java.awt.event.MouseEvent evt) { if ( evt.getModifiers() == InputEvent.BUTTON1_MASK) // left button process else // right button process }

Q.C5- The mouse is moving erratically. What's wrong?

Answers to Frequently Asked Questions about XFree86
Most likely, you've specified the wrong protocol for the mouse. Note that newer Logitech mice do not use the Logitech protocol, but instead use Microsoft (or MouseMan) protocol. For earlier versions running under Linux, the solution is to get gpm-1.13 (or later), run it as gpm -t pnp -R, and configure XFree86 for MouseSystems Protocol with /dev/gpmdata as the device.

I pressed the 'cigarette' button by accident. What do I do?

Frequently Asked Questions About QT Watch
If you press the cigarette button by accident, it is OK. Simply do not press the button the next time you have a cigarette and you will be back on schedule. Please do not smoke an extra cigarette. If you are already in "non-smoking mode" (that is, you have successfully stopped smoking) the QT-Watch will think you smoked and give you a factual and motivational messages tomorrow. The following day the QT-Watch will reset back to non-smoking mode.

How long does it take for the system to call for help once the button is pressed?

Medical Alert, FREE Aegis PERS Medical Alarm
The unit automatically dials for help when the button is depressed and a Help Advisor is usually on line in less than 30 seconds.

How do I get a Button to actively change under my mouse pointer?

comp.lang.perl.tk FAQ
You should specify both an '-image' and an '-activeimage' configuration option either when calling the ->Button() method or in a later separate call to the ->configure() method. Here is an example excerpted from the basic_demo script that comes with the Tk kit: #!/usr/local/bin/perl -w use Tk; $main = MainWindow->new; $QPBFile = "demos/images/QuitPB.xpm"; $QPBaFile = "demos/images/QuitPBa.

Why is the right mouse button disabled?

FAQs
To discourage visitors copying the content without asking. If you want a copy any of the content e-mail me at webmaster@spyflight.co.uk and I'll almost certainly forward what you want.

How do you determine which moving companies to include in your system?

Frequently Asked Questions (FAQ)
Each company that applies to become an affiliate on our system is being checked for their relevant state and federal moving licenses, their valid liability, auto, cargo, and warehousemen insurance policies, their previous loss history (in terms of past claims), Better Business Bureau record (although we do not require they be a BBB member), and their general moving experience.

Can I use an image instead of the submit button on a form?

FrontPage Frequently Asked Questions
Insert > Form > Picture. For an image reset button, just insert an image and hyperlink it to the page form page itself. This will refresh your page and reset the form.

How do I support moving a borderless form?

Forms - Windows Forms FAQs
This code snippet shows how you can move a borderless form. private const int WM_NCLBUTTONDOWN = 0xA1; private const int HTCAPTION = 0x2; [ DllImport( "user32.dll" ) ] public static extern bool ReleaseCapture(); [ DllImport( "user32.dll"...

How do I stop the game crashing when moving the mouse?

General Technical Issues - Hardwar FAQ
This issue affects Windows XP, and may occur when using the navigation screen. Upgrade to at least U2.04. Turn on the software mouse pointer, by ticking "Use software mouse pointer" on the Display tab of the Hardwar launcher. Changing video card drivers may resolve the problem - for Nvidia cards, older drivers or those made available at http://www.omegadrivers.net/ . Cree suggests: "Reduce your desktop colour depth to 16bit." SnakeBite writes: "Click HardWar.

How do I disable the right mouse button?

comp.lang.javascript FAQ - 9.91 - 2008-01-19
The oncontextmenu intrinsic event is the only safe and reliable method. Of the other approaches often presented, most depend on an alert box interrupting the process and rarely work. Note that oncontextmenu is a non-standard event and is not supported on all browsers. <body oncontextmenu="return false">

How do I use Emacs with a two-button mouse?

GNU Emacs FAQ for Windows
Emacs assumes that you have a three-button mouse by default. However, if you have a two-button mouse, you can press both buttons at once to emulate the missing middle button expected by Emacs. Three variables control mouse button emulation under Emacs: w32-num-mouse-buttons, w32-mouse-button-tolerance, and w32-swap-mouse-buttons (win32-num-mouse-buttons, win32-mouse-button-tolerance. If you use help on w32-num-mouse-buttons (i.e.

How do I get Emacs to recognize the third button on my mouse?

GNU Emacs FAQ for Windows
If you have a three-button mouse, Emacs should recognize and support the third (middle) button automatically. However, some people find that they have a three button mouse, but the middle mouse button does not work for them. First check to see if w32-num-mouse-buttons is set correctly. If so, then check to see whether your mouse has been installed with the proper driver (open Control Panel->Mouse to examine the driver being used).

How do I cut and paste with a 2 button mouse?

FAQ (Diff)
Plan 9 really works well only with a three-button mouse. In the meantime, Shift-Right-button will simulate a middle button, but that is inadequate for acme's chording.

I've only got a two button mouse, how do I get at menus?

Red Squirrel - Acorn Archimedes and RiscPC Emulator
The best way is to go out and buy a 3 button or wheel mouse. However you can also program the Windows 'Menu' key to act as a third mouse button. Typically this has an image of a menu with a pointer on it. Use the Keyboard options to select the button you wish to emulate (you may have to try a few times to get it right).
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact