Pamela,
>Sounds reasonable. What is the default behavior for a keypress event?It depends on the object BaseClass.
>>>What object is that IF code for?
>
>So the user can press the spacebar on the keyboard and get the same results as when they double click the mouse. The behavior code is in the DblClick() event method.The question was is the code in the TextBox within the grid or some other control?
>>>There's no KEYBOARD commands anywhere?
>
>I haven't put any in these objects. I am using the Codebook Framework and I am not aware of any that Flash has included. Besides, how would it be fired? Wouldn't another event have to fire like a timer or someting?I'm not very familiar with the internals of the Codebook framework so I can't help you there. But an event like Init() or GotFocus() could potentially be doing this without a timer. The key presses would be queued until the system started looking for keystrokes.
>I will look at the debugger again, but I seem to remember from last Friday that while this was occurring, I was looking at the READ EVENTS statement in the application object.I use a little udf:
lparameter roObject, roForm
activate window trace
activate window debug
if ( type( "m.roForm" ) == 'O' )
= inspect( roForm )
endif
if ( type( "m.roObject" ) == 'O' )
= inspect( roObject )
endif
suspend
return
and call it from a method where I want to begin tracing code.
>>>Is the grid readonly?
>
>Yes, it is. Does that have an effect?If the controlsource for the object is readonly, then pressing a key while in the field will just cause a beep in the BaseClass default behavior. The NODEFAULT should stop that.