On Nov 23, 2006, at 11:37 AM, Michael Sharpe wrote:
I'm looking for suggestions about finding out why a mousedown event
is not firing in an editfield. I've narrowed it down to the following.
I have a window with a a single editfield, and nothing else. When
the window is called using showmodal, the mousedown never fires in
the editfield. When called with show, it fires normally. More
oddly, if I add a statictext to the window and call the window with
showmodal, the mousedown event refuses to fire until I click on the
statictext box, after which it fires normally in the editfield for
the remaining life of the window. (The window has no initialization
and no other event handling other than in the editfield.mousedown)
It doesn't seem to matter whether the window is MovableModal or
Document. I'm calling it from a document window which was itself
called with showmodal.
Perhaps something in your project is taking the focus from the
editfield.
The really irritating thing is that when I export the window and
replicate the way it was called in a new program, the mousedown
fires normally. Any ideas about what else to try would be most
appreciated.
But apparently this new program is not identical to your original
program? If not, I'd suggest taking your original program and
stripping it down by incrementally commenting code or whatever,
working toward the configuration of the new program, until it works
correctly. Also be sure that the state of the new(working) program is
identical to the old one in all regards by examining each component
in the Properties Pane.
I can't duplicate the behavior you are describing in either Windows
(2006R2) or MacOS(2006R3) in a fresh project based on your description
(and apparently you cannot either). I added Window2 and Window3 into
a new project and added an editfield onto Window3, and a pushbutton
onto Window1 and Window2. In the pushbuttons I opened Window2 and
Window3 using, as for example in Window1:
dim w as new Window2
w.ShowModel
Mousedown in the editfield on Window3 fires fine for me.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>