Changes

→‎Mousing: More mousing, palettes, and windows
Line 11: Line 11:  
==Mousing==
 
==Mousing==
   −
You can click on the title bar of either of the partly hidden windows and drag it to where you can read its contents. Both describe changes in the current Squeak image that do not concern us here. Click the x at the top left corner to close each one.
+
Alan Kay's team at Xerox PARC (Palo Alto Research Center) designed Smalltalk to use a three-button mouse as shown here.  
   −
You can scroll the remaining window to view its contents, or click and drag any corner to resize it. This is different from other GUIs, where the edges of a window may be draggable, as in Linux, or only one corner, as in Mac OS.
+
[[File:800px-Xerox_Alto_mouse.jpg]]
   −
Alan Kay's team designed Smalltalk at Xerox PARC (Palo Alto Research Center) using a three-button mouse. Apple decided that three buttons was too confusing, and provided only one button (Boo, hiss!) on the Macintosh, so that you have to use confusing key-mouse combinations in Squeak on the Mac. A three-button mouse is discoverable. You point at things, and click different buttons, and different things happen. Arbitrary combinations, whether mouse chords or mouse-key combinations, are not in general discoverable.
+
Apple decided that three buttons was too confusing, and provided only one button (Boo, hiss!) on the Macintosh, so that you have to use confusing key-mouse combinations in Squeak on the Mac. A three-button mouse is discoverable. You point at things, and click different buttons, and different things happen. Arbitrary combinations, whether mouse chords or mouse-key combinations, are not in general discoverable.
   −
Some mice do have three buttons. On many wheel mice, you can depress the wheel as the middle button. On a two-button mouse, or a trackball, without a middle button, you might be able to click both the left and right buttons simultaneously to get the middle button effects. This is the case on Linux, and can be programmed in some mouse drivers for particular devices on other platforms.
+
Some mice do have three buttons. On many wheel mice, you can depress the wheel as the middle button. On a two-button mouse, or a trackball, without a middle button, you might be able to click both the left and right buttons simultaneously ("chording") to get the middle button effects. This can also work using the two mouse buttons under a touchpad. Chording works on Linux, and can be programmed in some mouse drivers for particular devices on other platforms.
   −
If you don't have a middle mouse button, and clicking two buttons doesn't do it, then control-clicking should work.  
+
If you don't have a middle mouse button, and chording doesn't do it, then control-clicking should work.
   −
Let's try them in any of the three Workspace windows in the initial view. Left-clicking puts a cursor in the text. Try it. Clicking again in the same spot selects the surrounding word, and clicking yet again anywhere in the same word deselects the word and puts the cursor under the mouse. You can click and drag to select any contiguous portion of the text, and you can use keyboard combinations such as shift-cursor or control-cursor, or both: shift-control-cursor to extend or retract the current selection by words or lines, or to move around. Try them. It is not difficult to discover what these combinations do. You might even be familiar with them from text editors or word processors. Shift-clicking also extends the selection. It is much easier to understand how that works by trying it than by reading an explanation, so I won't give one.
+
You can left-click on the title bar of either of the partly hidden windows and drag it to where you can read its contents. Both describe changes in the current Squeak image that do not concern us here. Click the x at the top left corner to close each one.
   −
There are several icons on the title bar at the top of a workspace window. If you point at one of them and don't click, a help balloon opens with a description of what the icon is for. One of the icons is for a menu, and the others are to close the window, expand it to full screen or shrink it to its previous size, or collapse the window to a tab from which you can open it again.
+
You can scroll the remaining window with the mouse to view its contents, or click and drag any corner to resize it. This is different from other GUIs, where the edges of a window may be draggable, as in Linux, or only one corner, as in Mac OS.
 +
 
 +
==The Workspace Windows==
 +
 
 +
Let's try the three buttons in any of the three Workspace windows in the initial view.
 +
 
 +
Left-clicking puts a cursor in the text. Try it. Clicking again in the same spot selects the surrounding word, and clicking yet again anywhere in the same word deselects the word and puts the cursor under the mouse. You can click and drag to select any contiguous portion of the text, and you can use keyboard combinations such as shift-cursor or control-cursor, or both: shift-control-cursor to extend or retract the current selection by words or lines, or to move around. Try them. It is not difficult to discover what these combinations do. You might even be familiar with them from text editors or word processors. Shift-clicking also extends the selection. It is much easier to understand how that works by trying it than by reading an explanation, so I won't give one.
 +
 
 +
Right-clicking in a window, indeed on any object, brings up a set of icons in a rectangle, with a title at the bottom of the array. This array of icons is known as an object halo, or halo for short. Every graphical object in Squeak or Etoys has one. A single right click in a Workspace window brings up a halo with the title Workspace. A second right click shifts to a smaller halo with the title PluggableText. A third shifts to a larger halo labeled Text, with a different set of icons. We will explore the Halo below.
 +
 
 +
Middle-clicking in a Workspace window brings up an untitled editing menu with font commands, cut, copy, and paste, print, and a number of other options.
 +
 
 +
==World==
 +
 
 +
Clicking on the desktop background outside the Workspace windows has different effects. Right-clicking brings up the world halo. Left-clicking and middle-clicking bring up two different world menus, both currently full of mysteries for us. A very determined learner can discover what many of the options on these menus do, but most people will prefer to get hints at least, and in some cases real explanations.
 +
 
 +
==Windows==
    
The main window has a tab labelled Squeak at the left, and another labeled Tools at the right. Clicking the tab expands it to a tool palette, and clicking the tab again puts it away.
 
The main window has a tab labelled Squeak at the left, and another labeled Tools at the right. Clicking the tab expands it to a tool palette, and clicking the tab again puts it away.
   −
Right-clicking brings up a set of icons in a rectangle, with a title at the bottom of the array. This array of icons is known as an object halo, or halo for short. Every graphical object in Squeak or Etoys has one. A single right click in a Workspace window brings up a halo with the title Workspace. A second right click shifts to a smaller halo with the title PluggableText. A third shifts to a larger halo labeled Text, with a different set of icons. We will explore the Halo below.
+
If you click on the Tools tab, and point at any of the icons in the Tools palette and don't click, a help balloon opens with a description of what the icon is for. You can click and drag any of the icons onto the desktop to open a new window.
   −
Middle-clicking brings up an untitled editing menu with font commands, cut, copy, and paste, print, and a number of other options.
+
Drag a System Browser window into the workspace.
   −
Clicking outside the Workspace windows has different effects. Right-clicking brings up the world halo. Left-clicking and middle-clicking bring up two different world menus, both currently full of mysteries for us.
+
There are several icons on the title bar at the top of a Workspace or System Browser window that we will also see on other windows. One of the icons is for a menu, and the others are to close the window, expand it to full screen or shrink it to its previous size, or collapse the window to a tab from which you can open it again.
    
==Pinning==
 
==Pinning==
1,009

edits