realbasic-nug
[Top] [All Lists]

Re: Supressing Return

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Supressing Return
From: Dr Gerard Hammond <g dot hammond at garvan dot org dot au>
Date: Mon, 31 Mar 2003 14:59:14 +1000
Return true

i.e.,

Function KeyDown(Key As String) As Boolean
   if asc(key) = 3 then 'my keyboard ENTER key
      DoExec()
      return true
   end if
   WindowModified(true)
   return false
End Function

How would you go about supressing the return/enter keys from making a new line in a multiline Edit field?

I am guessing you trap it in the keydown event for the edit field but what then?

Martin


---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe:
<mailto:realbasic-nug-off at lists dot realsoftware dot com>

Subscribe to the digest: <mailto:realbasic-nug-digest at lists dot realsoftware 
dot com>


--

Cheers,

Dr Gerard Hammond
Bioinformatic Analyst
Garvan Institute of Medical Research, Sydney, Australia.

What do you call a fish with no eyes? A fsh.

---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe:
<mailto:realbasic-nug-off at lists dot realsoftware dot com>

Subscribe to the digest: <mailto:realbasic-nug-digest at lists dot realsoftware dot com>
.


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