Plugins, fonts

Robert Brenstein rjb at robelko.com
Fri May 7 12:18:24 EDT 2004


>  > Auto-open plugins -- plugins that are opened automatically at
>>  startup. Any MetaCard or Revolution stack can be set to be an
>>  auto-open plugin. The standard sequence of preOpen and open messages
>>  is sent when the stack opens.
>>
>>  (new) Active plugins -- plugins that are executed automatically at
>>  startup: they are not opened but a 'pluginStack' message is sent to
>>  them. Such plugins are meant to perform one-time actions just after
>>  the MetaCard IDE loads. They open as normal stacks when selected from
>>  the "Plugins" menu or opened in the Plugin Manager.
>
>Can you give me an example of an "active plugin" that wouldn't work properly
>if it was an "auto-open plugin"? They look nearly identical...
>
>Ken Ray


The forementioned setScriptEditorFont plugin is a good example.

When I open it as a normal stack, it collects the info and displays a 
window showing the current selection and allows me to select another 
font/size. When I make new selection, it saves it and updates the 
currently open editors. When being closed, it also checks if I 
changed the selection but forgot to make it the new default. In other 
words, it functions like a normal stack using a number of standard 
messages.

Upon startup, the stack is supposed to only set the default for the 
engine. Nothing else.

Robert


More information about the metacard mailing list