From: Hans-Bernhard B. <br...@ph...> - 2004-07-06 11:50:26
|
On Mon, 5 Jul 2004, Ethan Merritt wrote: > On Monday 05 July 2004 05:07 pm, Hans-Bernhard Broeker wrote: > > > > But now I've found a truly ghastly factor influencing one of the problems > > I described: it depends on where the gnuplot text window pops up, relative > > to the current position of the mouse. If the mouse pointer is at rest > > while starting wgnuplot.exe (current version) via the keyboard, and it > > happens to be sitting *inside* the newly popped-up wgnuplot text window, > > the first keypress will be lost. This is insane. > > OK. So it takes one event (does Windows call them "events"?) before > focus is given to the new text window. I'm sure it's not quite that simple. By the time I press a key, at least a dozen events must have been sent to that window (WM_CREATE, WM_PAINT, WM_SETFOCUS, ...). I'm not quite sure, but it *seems* that it also makes a difference if I move the mouse around a bit before hitting that key. > first event is something other than a keypress. Or maybe there is an > explicit "gain focus" call? There is --- it just doesn't seem to take effect. -- Hans-Bernhard Broeker (br...@ph...) Even if all the snow were burnt, ashes would remain. |