Chachereau Nicolas:

That's not really the use case. Suppose the director, for some reason,
takes a while before asking SciTE to be activated. You might then
have switched to another application, e.g. might be reading something
in your web browser. It would then be an annoyance if SciTE was
suddenly risen above what you're reading.

  On Windows the 'rule' is that the application currently with focus
can donate it to another application. That means that sending a
"focus:" message to the SciTE that should have focus wouldn't work on
Windows since the OS will refuse to heed the call. Instead the SciTE
with focus must call SetForegroundWindow on the SciTE that it is
asking to open the file.

>The x11.windowid is actually something else altogether. ScitePM needs
>it for its own bring-SciTE-to-front. But then that will be handled
>properly...

Yup, send a "focus:" message :)

  Sending a "focus:" message is better than exposing implementation
details like window IDs if possible. SciTE derivatives could have
multiple top level windows. Its likely that SciTE for GTK+ only runs
on X now (sometimes on top of another system like OS X) but its not
the only possibility.

  Neil
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to