[Jslib] Full Screen

Greg Marine gregmarine at gmail.com
Wed Feb 21 13:06:28 PST 2007


I read a post reply to my question in mozilla.dev.platform and it may be
possible to do this on a window opened by a script. I may look into it later
and report back.

Regards,
Greg

On 2/21/07, Greg Marine <gregmarine at gmail.com> wrote:
>
> Ok, here is what you do to make your window go full screen with XULRunner:
>
> 1) As far as I know thus far, the only window that can be made full screen
> is the XUL window that is opened by default when you start up your XULRunner
> application. (The one referenced in the default prefs.)
>
> 2) When you want the window to go full screen, set "window.fullScreen" to
> "true" (window.fullScreen = true;).
>
> 3) To make it go back to a normal window, you just set that property to
> "false."
>
> I found this out by looking in the function Jeff Dickson mentioned (BrowserFullScreen()) in the Firefox source code. So, thanks a million Jeff!
>
> God Bless <><
> Greg Marine
>
> On 2/21/07, Greg Marine <gregmarine at gmail.com> wrote:
> >
> > Thanks :-D
> >
> > On 2/21/07, Jeff Dickson < jdickson at mti-interactive.com> wrote:
> > >
> > >  Firefox!
> > >
> > >
> > >  ------------------------------
> > >
> > > *From:* jslib-bounces at mozdev.org [mailto: jslib-bounces at mozdev.org] *On
> > > Behalf Of *Greg Marine
> > > *Sent:* Wednesday, February 21, 2007 10:40 AM
> > > *To:* Mozilla Application Development Javascript Libraries
> > > *Subject:* Re: [Jslib] Full Screen
> > >
> > >
> > >
> > > Thank you for your reply. However, I forgot to mention I'm trying to
> > > do this in a XULRunner application. Is BrowserFullScreen(); something
> > > you created or is this for Firefox?
> > >
> > > Thanks again,
> > > Greg
> > >
> > > On 2/21/07, *Jeff Dickson* <jdickson at mti-interactive.com > wrote:
> > >
> > > This is part of what I do to get full kiosk mode. The Screen
> > > resolution had to be set to get it all to work.
> > >
> > >
> > >
> > > var MTI_DEBUG = true;
> > >
> > >
> > >
> > > function init() {
> > >
> > >
> > >
> > >    window.locationbar.visible=false;
> > >
> > >    window.toolbar.visible=false;
> > >
> > >    window.personalbar.visible=false;
> > >
> > >    window.statusbar.visible=false;
> > >
> > >
> > >
> > >    // Force resolution
> > >
> > >    document.documentElement.setAttribute("width", "1024");
> > >
> > >    document.documentElement.setAttribute("height", "768");
> > >
> > >
> > >
> > >    if (!MTI_DEBUG) {
> > >
> > >       // Main pulldown menu bar
> > >
> > >       window.menubar.visible=false;
> > >
> > >       BrowserFullScreen();
> > >
> > >    }
> > >
> > > }
> > >
> > >
> > >
> > > Jeff Dickson
> > >  ------------------------------
> > >
> > > *From:* jslib-bounces at mozdev.org [mailto:jslib-bounces at mozdev.org] *On
> > > Behalf Of *Greg Marine
> > > *Sent:* Wednesday, February 21, 2007 8:06 AM
> > > *To:* jslib at mozdev.org
> > > *Subject:* [Jslib] Full Screen
> > >
> > >
> > >
> > > Good Morning,
> > >
> > > How do I get full screen to work on Windows. It appears to work just
> > > fine in Linux. But in Windows, the taskbar is still visible. Here is the
> > > code snippet:
> > >
> > > var win = new
> > > CommonWindow("chrome://telekast/content/frmTeleprompter.xul", 640, 480);
> > > win.openFullScreen();
> > >
> > > I appreciate any help you can give!
> > >
> > > God Bless <><
> > > Greg
> > >
> > > --
> > > Internet Community Church Ministries
> > > http://www.iccnet.org
> > >
> > >
> > > _______________________________________________
> > > Jslib mailing list
> > > Jslib at mozdev.org
> > > http://mozdev.org/mailman/listinfo/jslib
> > >
> > >
> > >
> > >
> > > --
> > > Internet Community Church Ministries
> > > http://www.iccnet.org
> > >
> > > _______________________________________________
> > > Jslib mailing list
> > > Jslib at mozdev.org
> > > http://mozdev.org/mailman/listinfo/jslib
> > >
> > >
> >
> >
> > --
> > Internet Community Church Ministries
> > http://www.iccnet.org
> >
>
>
>
> --
> Internet Community Church Ministries
> http://www.iccnet.org
>



-- 
Internet Community Church Ministries
http://www.iccnet.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/jslib/attachments/20070221/5eb29b1f/attachment-0001.html 


More information about the Jslib mailing list