|
GETTING NEURON TO OPERATE IN FULL SCREEN
MODE
If you decide to use Neuron
as your distribution method, you will likely realize in no time at all
that trying to get your book running in Full Screen mode does not do what
you want it to do.
When ToolBook is
running inside of a browser window, the browser is seen by ToolBook as the
Screen Area...so when your book tries to size to Full Screen it simply
fills the area in the browser window rather than the area of your actual
screen. Although this is appropriate behavior
for Web content, it is not necessarily the behavior you want.
So, how can you get around
this?
Although the mainWindow of
ToolBook is limited to the size of the browser window, viewers that you
define within ToolBook as Popup type viewers are permitted to utilize the
entire screen.
So the basic ideas for
getting Neuron to use the Full Screen is to ensure that you open a popup
viewer and show your book in that viewer instead. Your mainWindow will
also be open but it will be UNDER this popped up viewer where the user
can't see it.
Here the the basic steps
to doing this:
- Create a new viewer (use
the Object menu...Viewer option) and tell it NOT to create a new
page/background.
NOTE: It is very important to configure your viewer so that the
"Hide when instance is deactivated" setting is disabled. If
you leave this setting on, your popup viewer will not be seen for more
than an instant before it disappears.
- Give it a name of some
sort ("myViewer" will do), and ensure it is a POPUP type
viewer.
- Add some code to your
book script to force open that viewer and maximize it when the book
loads, something like:
to handle enterBook
vwr = viewer "myViwer"
open vwr
state of vwr = maximized
show vwr
forward
end
That's it. This should
result in the Browser showing page 1 just like it normally would but on
top of the browser window will be another window (the viewer) also showing
page 1, which happens to be maximized.
|