[REBOL] Re: Rebol.org plugin testing
From: SunandaDH:aol at: 7-Sep-2004 12:31
> But easy-vid needs an appropriately sized window.
> We have our first candidate for a scirpt which needs to define its own
> plugin window size.
That's one of the problems relating to trying to run an arbitrary script.
Uncovering such problems is why we're beta-ing rather than releasing this.
The size issue is probably rue for most plugin-able scripts in the Library --
the default 640x480 window size is not appropriate for most of them.
There is no way the Library can guess the size a script needs
And there is no way (I know of) a script running under the plugin can tell
the browser to resize the window . And, even if there were, none of the scripts
in the Library have that code.
The solution I currently see is that we extend the Library header to say
explicitly what dimensions a script needs when run under the plugin. So, for
example, the Library header for easy-viid.r becomes something like:
platform: [plugin] ;; -- explicitly state it can run under the
plugin: [window: 700x500 needs: version-no] ;; state window size and
We'll need version of plugin to use: one day, there'll be a range of releases
of the plugin and some scripts may only work on the latest (or the earliest).
A better solution will be welcomed!