![]() |
Viewports |
PPresenter Manual Viewports |
Portable Presenter is a package designed to give
presentations. A presentation is based on
slides, which are shown on viewports.
There are two kinds of viewports:
|
How to create a viewportImplicit creationDo not add any viewports explicitly: PPresenter will create one for you. You may specify the size of this viewport with the-geometry option of the show's constructor
function new().
If you specify the Explicit creationAfter the show's instantiation until you add your first slide, you can add viewports explicitly. You can add as many viewport as you like, but only one can have controls. See the examples below how it can be used.Options for all viewportAbout the windowing system
About PPresenter
ExamplesExample 1: Implicit CreationThe easiest way to create one viewport for your show is just by not usingaddViewport :
use PPresenter; my $show = PPresenter->new();Now you have only one viewport, with controls on that viewport. The viewport covers the whole screen, unless you specify a -geometry
with new()
Example 2: Implicit Creation with Control ViewportIf you want to have more than 1 viewport, you need a windowing system which enables Tk to do this. Currently, this is only tested for UNIX.use PPresenter; my $show = PPresenter->new ( -controlDisplay => 'far.away.com:0' , -controlGeometry => '300x300+40+40' );When you specify the -controlDisplay you will get two
viewports: one without controls and showing slides, the other
with controls, showing slide-notes. The default geometry is
'640x480' .
As test, you may try:
-controlDisplay => $ENV{DISPLAY}but this is not useful in a practical situation. Example 3: Explicit Creation of one viewportExplicit creation of one single window is also not hard, as long as you do not forget that one viewport --so this viewport-- requires control:$show = PPresenter->new; $show->addViewport ( -display => 'anywhere' , -hasControl => 1 , -geometry => '400x600+30-20' );Because one viewport is explicitly added, PPresenter will not create one for you. To be more precize: if there is at least one viewport which shows slides, then none is created automatically. The number of options of a viewport with controls is much larger than for a viewport without controls. See the special section of control options. | |
Portable Presenter is written and maintained by Mark Overmeer. Copyright (C) 2000-2002, Free Software Foundation FSF. |