gettingstarted
[Top] [All Lists]

Re: Keyboard/Mouse stop

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Keyboard/Mouse stop
From: Killobit <killobit at earthlink dot net>
Date: Mon, 27 Sep 2004 01:40:04 -0700
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <200409270431879 dot SM01712 at iaft02>

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>

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