gettingstarted
[Top] [All Lists]

RE: Keyboard/Mouse stop

To: "'Getting Started'" <gettingstarted at lists dot realsoftware dot com>
Subject: RE: Keyboard/Mouse stop
From: "Lemuel Raganas" <lemuel at bf-e dot com>
Date: Mon, 27 Sep 2004 16:51:56 -0700
Delivered-to: gettingstarted at lists dot realsoftware dot com
Thread-index: AcSkbZ5zEgtmB93ESBKxNWwR6gX4TQAfyorw
It's not the control...
How do you disable the mouse and keyboard...
Totally disabled....
Which means you can't use... the mouse and keyboard... on your computer...

-----Original Message-----
From: gettingstarted-bounces at lists dot realsoftware dot com
[mailto:gettingstarted-bounces at lists dot realsoftware dot com] On Behalf Of 
Killobit
Sent: Monday, September 27, 2004 1:40 AM
To: Getting Started
Subject: Re: Keyboard/Mouse stop


On Sep 27, 2004, at 04:36 PM, Lemuel Raganas wrote:

> How do you disable the mouse and keyboard in REALbasic?

It depends on what control you want to disable it for, if your talking 
about an editfield, just set the
ReadOnly Property to True

Return True in the Keydown event of most other controls that can 
receive key events

Diaabling the mouse? not sure how you can do that, you could probably 
create a custom cursor and set
the mouse cursor of the app to an your custom cursor

for this example, I assume you created a custom CURS resource in 
ResEdit or Resorcerer (2 mac only tools, I'm not sure how you would 
make a custom CURS for from windows) and named it MyEmptyCursor and 
dropped it into the project

in App.open (or the windows open event)
put

app.mousecursor = MyEmptyCursor

And that should do it, to bring back the regular cursor at any time do 
something like this

app.mousecursor = Nil

check the Language reference for more info

HTH
Eric Hoaglin
"What's an eBay?" - My Dad

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>