<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=US-ASCII">
<meta name="author" content="mailto:webmaster@zap.tartarus.org">
<meta name="description" content="Zap is a configurable programmers' editor for Acorn RISC OS">
<title>Mouse control</title>
</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="IndexPage">Index</a> | <a href="Chapter6">Next</a></p>
<h1><a name="C5"></a>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>
<h2><a name="S5.1"></a>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#S3.3">section 3.3</a>); if the window contains a selection, the end of the <a name="i0"></a>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>
<h2><a name="S5.2"></a>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 <a name="i1"></a><em>StrongHelp</em>, if that is installed on your system.
</p>
<p>
This system is highly configurable - see <a href="Chapter12#S12.3.4">section 12.3.4</a>.
</p>
<hr>
<p>
The next section in the manual is <a href="Chapter6#C6">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#C7">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>

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