1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
|
<?xml version="1.0" encoding="UTF-8" ?>
<!-- $Id$ -->
<!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"../docbook-xml/docbookx.dtd"
[
<!ENTITY % myents SYSTEM "../fvwm.ent" >
%myents;
]>
<section id='GotoPage'>
<title>GotoPage</title>
<cmdsynopsis>
<command>GotoPage</command
><group choice='plain'
><arg choice='plain'>prev</arg
><arg choice='plain'
><arg choice='opt'
><replaceable>options</replaceable
></arg
><arg choice='plain'
><replaceable>x</replaceable
><optional>p</optional
></arg
><arg choice='plain'
><replaceable>y</replaceable
><optional>p</optional
></arg
></arg
></group>
</cmdsynopsis>
<para>
Moves the desktop viewport to page (x,y). The upper left page is
(0,0), the upper right is (M,0), where M is one less than the
current number of horizontal pages specified in the
<fvwmref cmd="DesktopSize"/>
command. The lower left page is (0,N), and the lower right page
is (M,N), where N is the desktop's vertical size as specified in the
<fvwmref cmd="DesktopSize"/>
command. To switch to a page relative to the current one add a
trailing
'<fvwmopt cmd="GotoPage" opt="p"/>'
after any or both numerical arguments.</para>
<para>Possible
<replaceable>options</replaceable>
are
<fvwmopt cmd="GotoPage" opt="wrapx"/> and <fvwmopt cmd="GotoPage" opt="wrapy"/>
to wrap around the x or y coordinate when the viewport is moved
beyond the border of the desktop.</para>
<para>To go to the last visited page use
<fvwmopt cmd="GotoPage" opt="prev"/>
as the first argument. The
<emphasis remap='B'>GotoPage</emphasis>
function should not be used in a pop-up menu.</para>
<para>Examples:</para>
<programlisting>
# Go to page (2,3)
GotoPage 2 3
# Go to lowest and rightmost page
GotoPage -1 -1
# Go to last page visited
GotoPage prev
# Go two pages to the right and one page up
GotoPage +2p -1p
</programlisting>
</section>
|