Dear Dave,
I tried to create a project as you described, ran it, switched to an
other app, switched back: NO PROBLEMS!
Here's what I did and what I have:
a multiline EditField with code in MouseDown event handler:
msgBox "Go Ahead"
a Canvas that overlaps the entire editfield with code in the MouseDown
event handler:
if keyboard.commandkey or keyboard.controlkey then
msgBox "STOPPED"
return true
else
return false
end
Working on a Powerbook G4 (800MHz), OS 10.3.5, RB 5.5.3
HTH
Cheers,
Robert
On Sat, 30 Oct 2004 2:04 PM, Dave wrote:
I think it's because the window is receiving the keydown event but
doesn't know what to do with it. I haven't specified to beep anywhere
in my project, which means that it's a system beep, which (I think)
means the focus somehow isn't getting back to the editfield.
Dave
On Sat, 30 Oct 2004 15:33:43 -0400, Charles Yeomans
<yeomans at desuetude dot com> wrote:
On Oct 30, 2004, at 1:01 PM, Dave wrote:
Hi everyone,
I'm having editfield problems. Here's what's up:
I have a window with (basically) an editfield and a canvas. The
canvas is a transparent control over everything to intercept certain
mouseclicks (right and command clicks). Otherwise, the mouse click
is
ignored by the canvas (or so I'm led to believe) and passes to the
editfield underneath.
The problem:
When I run my program, it works fine. But if I switch to another
application and then back to my program, and try typing, I'm met at
every keystroke by my iBook beeping at me. I've tried putting
"SearchField.setfocus" everywhere I could think, but nothing is
working. What am I missing?
A strategy for finding the problem.
Why is the beep occurring?
Charles Yeomans
_______________________________________________
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>
|