On Tue, Oct 18, 2011 at 9:43 AM, Terry Brown <[email protected]> wrote:
> So the sanctioned method for loading a file from a @script node in a
> loading file is...?
Try an 'after-create-leo-frame' event handler. This executes near the
end of g.openWithFileName. Here are the last statements from
g.openWithFileName::
c.setLog()
g.createMenu(c,fn)
g.finishOpen(c)
It is the call (or rather, calls, plural) to c.setLog that must be
done in the right order, whatever that could be, when opening multiple
files. Don't ask me to create a stack of logs: I'm not going there.
g.createMenu invokes the 'after-create-leo-frame' handler.
g.finishOpen sets the focus, so there is potential for focus problems.
If so, your 'after-create-leo-frame' handler can deal with it.
To repeat, this is an edge case that I don't feel compelled to support.
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.