|
Disable Mouse Clicks in a Window ?[WD5.5] |
Started by Marco Antonio - Brasil, Apr., 13 2004 2:54 PM - 5 replies |
| |
| | | |
|
| |
Posted on April, 13 2004 - 2:54 PM |
Hi, I need disable mouse events in a specific window, and use only F-key. I dont have experience with APIs. Is it possible ?? thanks Marco Antonio |
| |
| |
| | | |
|
| | |
| |
Posted on April, 13 2004 - 4:36 PM |
G'day Marco You might be able to use the Windev Event commands to trap and discard the mouse clicks for the nominated window and also use it to trap the function keys without using API's In the projcet init Event("GETOBJKEYPRESSED","*.*", 256) Procedure GETOBJKEYPRESSED() Switch _EVE.wparam case 112 // F1 //do something case 113 //F2 //do something End
There is a lot in the event help on trapping mouse events and an example in the guide to lock the mouse to a section of the screen which might be a quick and easy way to achieve what you need. Regards Al |
| |
| |
| | | |
|
| | |
| |
Posted on April, 13 2004 - 7:13 PM |
Hi Marco, You could place all the buttons off-screen and create shortcut keys for them. No need for API's. Greetz, Piet
Hi, I need disable mouse events in a specific window, and use only F-key. I dont have experience with APIs. Is it possible ?? thanks Marco Antonio |
| |
| |
| | | |
|
| | |
| |
Posted on April, 13 2004 - 10:56 PM |
G'day Marco You might be able to use the Windev Event commands to trap and discard the mouse clicks for the nominated window and also use it to trap the function keys without using API's In the projcet init Event("GETOBJKEYPRESSED","*.*", 256) Hi Al This is exactly that I´m using, but in this moment the mouse is active and the operator can do different things. And in my application, I can´t let the operator click in others areas. He can only use F-KEYS. capturing the event like your suggestion. So, The mouse pointer should by invisible and disable How Can I disable the mouse pointer ?? Best Regards Marco |
| |
| |
| | | |
|
| | |
| |
Posted on April, 14 2004 - 10:43 AM |
This is exactly that I´m using, but in this moment the mouse is active and the operator can do different things. And in my application, I can´t let the operator click in others areas. He can only use F-KEYS. capturing the event like your suggestion. So, The mouse pointer should by invisible and disable How Can I disable the mouse pointer ?? Best Regards Marco Hello Marco, you can use a mouse cursor without content if it is only the optical aspect. Raimund
http://www.invitec.com |
| |
| |
| | | |
|
| | |
| |
Posted on April, 14 2004 - 1:45 PM |
Maybe this work for you:
//starting app (in initialization) CallDLL32("User32","ShowCursor",False)
//closing app: CallDLL32("User32","ShowCursor",True)
But: Mouse Events occur. But the User see not where he´s pointing at.
yours, Alex
Marco Antonio - Brasil <natalex@uol.com.br> wrote:
Hi, I need disable mouse events in a specific window, and use only F-key. I dont have experience with APIs. Is it possible ?? thanks Marco Antonio
|
| |
| |
| | | |
|
| | | | |
| | |
|