Posted by: ronburk
« on: September 10, 2006, 06:16:01 PM »Thanks Graeme!
By gum, you are right! When I just plop an editor control on a blank
form and run it, the Esc key is delivered to the editor control when
it has the focus (I'm in Gnu Emacs mode so, for example Esc-> goes
to the end of the buffer). The Tab key is still picked off by somebody
for navigation purposes, but I can leave that battle for another day.
So apparently I did something to affect the behavior of the Esc key
in the editor control, even though I had not defined any Esc handler
at that point (had no interest in the Esc key until I found it terminated
the form).
Your experiment also showed me that another problem I saw must
just be a bug and not my fault. Just put an editor control and a text
control on an empty form, type some text into the editor control,
hit Tab twice (to cycle to the text control and back) all your text
disappears. Seems to be a redraw bug, as dragging some other window
over the form to force a redraw makes the text reappear.
Anyway, I can recreate my form from scratch, step by step and
see if I can figure out exactly at what point Esc started terminating
the form.
Thanks to everybody for their help!
By gum, you are right! When I just plop an editor control on a blank
form and run it, the Esc key is delivered to the editor control when
it has the focus (I'm in Gnu Emacs mode so, for example Esc-> goes
to the end of the buffer). The Tab key is still picked off by somebody
for navigation purposes, but I can leave that battle for another day.
So apparently I did something to affect the behavior of the Esc key
in the editor control, even though I had not defined any Esc handler
at that point (had no interest in the Esc key until I found it terminated
the form).
Your experiment also showed me that another problem I saw must
just be a bug and not my fault. Just put an editor control and a text
control on an empty form, type some text into the editor control,
hit Tab twice (to cycle to the text control and back) all your text
disappears. Seems to be a redraw bug, as dragging some other window
over the form to force a redraw makes the text reappear.
Anyway, I can recreate my form from scratch, step by step and
see if I can figure out exactly at what point Esc started terminating
the form.
Thanks to everybody for their help!