<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>

<head>
<title>Mouse control</title>
<meta name="generator" content="Buttress anonymous build (Jan 29 2002 11:21:06) xhtml-backend" />
<meta name="author" content="mailto:webmaster@zap.tartarus.org" />
<meta name="description" content="Zap is a configurable programmers' editor for Acorn RISC OS" />
</head>

<body background='/img/background.png' text="#000000" bgcolor="#DCDCDC" link="#20209F" vlink="#008000" alink="#FF2020">
<p align='center'><a href='Chapter4'>Previous</a> | <a href='Contents'>Contents</a> | <a href='Chapter6'>Next</a></p>
<a name="5"></a><h1>Chapter 5: Mouse control</h1>

<p>The mouse can be used in positioning the cursor, making and modifying selections, and a few other useful operations.</p>
<a name="5.1"></a><h2>Section 5.1: Standard mouse actions</h2>

<p>The following is a list of the standard mouse actions. First, single clicks:</p>
<ul>
<li>Click Select - Place cursor at the clicked position. This can be modified by holding down various keys while clicking with the mouse. <code>Shift</code> will only position the cursor if that would leave it outside the current selection. <code>Control</code> won't move the cursor, but will clear the selection.</li><li>Click Menu - Bring up the window menu. This can be modified by holding down various keys while clicking with the mouse. <code>Control</code> brings up the font menu, <code>Shift</code> brings up the colour menu, <code>Alt</code> brings up the <code>Modes</code> menu, and <code>Control-Shift</code> brings up the mode menu (or the main window menu if the current mode has no mode menu). <code>Alt-Shift</code> brings up the <code>Selection</code> menu if there is a selection in that window; otherwise you get the <code>Modes</code> menu as you would for <code>Alt</code>.</li><li>Click Adjust - If the window doesn't have the input focus, it gets the input focus and the cursor is moved to the last used position (see <a href="Chapter3#3.3">section 3.3</a>); if the window contains a selection, the end of the selection closest to the clicked position is moved; if the window has the input focus then a selection is formed between the cursor and the clicked position.</li></ul>

<p>Second, drags. If you hold down <code>Control</code> then the cursor will remain in place:</p>
<ul>
<li>Dragging <code>Select</code> defines a new selection.</li><li>Dragging <code>Adjust</code> resizes the current selection.</li></ul>

<p>Thirdly, multiple clicks of <code>Select</code> or <code>Adjust</code>. If you go straight into a drag from these, the selection will only increase in amounts of whatever you selected here (for instance, double click then hold and drag <code>Select</code> will allow you to define a selection restricted to words):</p>
<ul>
<li>Double clicks select a word.</li><li>Treble clicks select a line.</li><li>Quadruple clicks select a paragraph.</li><li>Quintuple clicks select the entire file.</li></ul>

<p>In some modes, some of these actions don't make sense - in general, increased numbers of clicks increase the area selected in a useful way.</p>

<p>If you hold down <code>Shift</code> with double-clicking, the definition of 'word' used will alter slightly. For instance, double clicking in <code>$.mydir.myfile</code> only selects <code>myfile</code>; <code>Shift</code> double clicking would select the entire filename.</p>
<a name="5.2"></a><h2>Section 5.2: Click Send: <code>Alt</code> + double click</h2>

<p>If you hold down <code>Alt</code> and double click with either <code>Select</code> or <code>Adjust</code>, the word at the cursor will be 'sent' to one of a variety of places, depending on what you're doing.</p>

<p>For instance, <code>Alt</code> double clicking on a URL in a text mode (for instance Text mode or Email mode) will attempt to open that URL in a web browser, telnet program, or whatever as appropriate. If you <code>Alt</code> double click on more or less anything else, it will be looked up in <em>StrongHelp</em>, if that is installed on your system.</p>

<p>This system is highly configurable - see <a href="Chapter12#12.3.4">section 12.3.4</a>.</p>

<hr />

<p>The next section in the manual is <a href="Chapter6#6">chapter 6</a>, which covers some of the more sophisticated editing techniques not introduced earlier. In particular, auto indenting, use of tabs, and how to wrap or format your text automatically.</p>

<p>Alternatively, you could move on to <a href="Chapter7#7">chapter 7</a>, which shows how to alter the way Zap displays things - the colours it uses, the font it displays the text in, and so on. It also looks at printing.</p>
<p align='center'><a href='Chapter4'>Previous</a> | <a href='Contents'>Contents</a> | <a href='Chapter6'>Next</a></p>

<hr />

<address>
<a href='/copyright'>&copy; Copyright Zap Developers 1992-2002</a>. All Rights Reserved.
</address>
</body>

</html>
