Raju Bitter wrote:
Max, Henry,
I'm back at working on http://jira.openlaszlo.org/jira/browse/LPP-8107
I have a few qestions:
1) What kind of code do you put into LzScreenKernel, compared to
LaszloCanvas? Would be better to have the code to go into fullscreen
mode in LzScreenKernel? Max already suggested that, so that will be my
approach for now.
LzScreenKernel seems like the right place to put the actual
implementation. I'd also suggest adding a capability to LzSprite so
folks can check to see if a given runtime supports fullscreen. That way
you can avoid writing stub methods for DHTML, and optionally add a
warning. See LaszloView.lzs#$lzc$set_rotation() for an example of this.
2) Where's the connection between canvas attributes and the templates
used for HTML generation. I'll look into that, but some input would be
valuable.
I'm documenting my approach
here: http://wiki.openlaszlo.org/SWF_Runtime_Fullscreen_Support#Ongoing_work
You need to set the allowFullScreen object/embed attribute. The place
to do this is lps/includes/source/embednew.js#lz.embed.swf(). It looks
like you already have a line on how to pass the canvas attribute into
the generated html, but you may be able to get away with defaulting
allowFullScreen to true and not have to bother with this...
--
Regards,
Max Carlson
OpenLaszlo.org