This appendix briefly describes some techniques that are commonly used in Windows, both in the operating system interface and in applications, but which you may not be familiar with if you are new to your PC.
As was mentioned in the chapter Start Here for the Tutorials, we will generally say "Windows" as an abbreviation for Windows 95, Windows 98, Windows 2000 and/or Windows NT 4.0. The information in this appendix applies equally to all four, unless otherwise stated.
Most windows have up to three buttons at the top right-hand corner, on the window's title bar. Buttons that can appear here are:
The commonest method of executing a function is to click an item on a menu at the top of the application's window. This makes a pulldown menu appear, and you move the mouse pointer down and click the name of the function you want.
If an item is followed by "...", it means a dialog box will appear where you can enter details.
If an item is followed by , it means the item is not itself a function, but clicking it will bring up a submenu, where you can click the function you want.
If you merely move the mouse pointer over an item with a submenu, and do not click, the submenu will appear anyway after a few seconds, and will disappear if you release the mouse button without clicking. In this book we generally tell you to click such an item, but you can do it either way.
Often, when you need to select a file, you are presented with a dialog box showing all the files and folders that are in a particular folder. The dialog box is said to be open at this folder. Examples are the commonly used Open dialog box, shown in Figure A-1, and the Add Files to Project dialog box in Mainframe Express.
Figure A-1: The Open Dialog Box
Some or all of the following methods may have been implemented for moving around the hierarchy of folders:
In the kind of dialog box described in the section Changing Folders, you can usually carry out functions like creating folders, and renaming and deleting folders and files.
This means you can do these things from within whatever software displayed the dialog box (for example, if you clicked Open on the IDE's File menu), which is sometimes more convenient than going into another session. You don't need to carry out the primary function of the dialog box, for example opening a file if it's the Open dialog box. After doing what you want, you can simply click Cancel.
Hierarchical data, for example a list of folders (directories) and the folders within them, is often shown in a tree view. This is a list of items at the top level, with a "+" on the left of each item. Click the "+" to expand the entry to show the items immediately subordinate to it. The "+" then changes to a "-", which you click to compress ("close") that part of the tree again. Or click an item and type "*" (asterisk) on your numeric key-pad, to show all items subordinate to the item.
A good example is Windows Explorer (right-click My Computer on your desktop, and then click Explore), where the left-hand pane is a tree view showing the drives and folders on your PC.
In the lists of files shown in (for example) the Open dialog box or Windows Explorer, file extensions that Windows recognizes may not be shown. Instead, the file type may be indicated by an icon or a description. If you want to change your Windows settings so that extensions are shown, you can do so via Windows Explorer, as follows:
You can now close Windows Explorer.
If you have a dialog box open while you are doing this, you may have to close it and reopen it before you see the change.
Sometimes you see a table with several columns, with column headings on a gray background. In Windows, such a table is called a list control. Figure A-2 shows part of such a table.
Figure A-2: Part of a List
Some or all of the following methods may have been implemented for rearranging the layout:
Often you're presented with a list, and you need to select one or more items in the list before clicking a button to perform some action on the selected item or items. Examples are listboxes, the commonly used Open dialog box (shown in Figure A-1 above), and the Add Files to Project dialog box in Mainframe Express.
To select a single item you simply left-click on it, but in many cases you can also select multiple items. Some or all of the following methods may have been implemented:
Sometimes you see a field with a down-arrow on the right. The arrow indicates a dropdown list, listing possible values you could enter into the field. Figure A-3 illustrates a field with a dropdown list, and Figure A-4 shows the same field with its dropdown list open
Figure A-3: A Field with a Dropdown List
Figure A-4: The Same Field with its Dropdown List Open
Some or all of the following methods may have been implemented for entering a value into the field:
Often, if you right-click on a window or object on the screen, a menu appears showing functions that are appropriate for that window or object. This is called a popup menu or context menu.
Most commonly, when you have finished making changes in a dialog box, you click a button marked OK. This applies the changes you made, and removes the dialog box from your screen.
In cases where you might want to apply some changes and then make some more using the same dialog box, there is generally an Apply button instead. This applies the changes but keeps the dialog box on your screen.
Sometimes a dialog box has an OK button and a button called a pushpin. When the pushpin looks like this , the OK button works as normal. If you click the pushpin so that it looks like this , the OK button works like an Apply button.
Sometimes, when you select an item in a list to edit, a dialog box appears for you to enter the new details. A pushpin on the dialog box may control whether clicking a different item in the list closes the dialog box or loads the new item's details. An example is the PCT Properties dialog box in Mainframe Express's CICS Option.
In many applications, you can move an item as follows:
Ctrl+C, Ctrl+X, and Ctrl+V are the shortcut keys for functions Copy, Cut, and Paste usually available on menus . It's usually quicker to use the shortcut keys. A few applications may use different shortcut keys for these functions.
You may find you can cut and paste text from the online version of this Getting Started book into Mainframe Express. This can save typing when the book gives a path to enter into a field.
In many applications, you can move or copy an item by "dragging and dropping" it.
This is called "dragging" the item, and "dropping" it at the place where you release the button.
This might copy the item, giving you a copy in the new location but leaving the original where it was; or move it, deleting it from the original location. It depends on the application. In many applications you can drag using the right mouse button, and then when you drop the item you get a popup menu on which you can choose whether to copy or move.
Often, you can transfer an item between two lists or tree views in this way. A good example is Windows Explorer, where you can even have several copies of the same tree view, by opening Windows Explorer several times. You can drag a file to its new location in another copy of the tree view, if the whole tree view is too big for you to see both the source and target locations on your screen in one tree view.
Often, you can operate on a group of items. You select them as described in the section Selecting Items in a List above, and then press down the left mouse button on any one of them and drag. Be careful not to release the button till your mouse pointer is on the target location, or you'll deselect them all.
Probably the best way to view and manipulate your files in Windows is to use Windows Explorer, which shows them in a tree view.
To start Windows Explorer, you probably have an icon on the Programs menu within your Start menu, or you can right-click My Computer on your desktop and click Explore on the popup menu. The left-hand pane shows a tree view showing all your drives and folders, and the right-hand pane shows a list of all files in the currently selected folder.
For example to copy vsamdemo.cbl from \mfuser\projects\gsdemo\idedemo\source\original into folder \mfuser\projects\gsdemo\idedemo\source:
The right-hand pane shows the contents of the folder original.
Although Windows is intended to be used through its fully graphical interface, it does provide a way you can do things via a command line. This is a window that emulates Microsoft's earlier operating system MS-DOS (often known as DOS). It is known on Windows 95, Windows 98 and Windows 2000 as the MS-DOS command prompt, and on Windows NT as simply the command prompt. We will call it the command prompt.
To start a command prompt, you probably have an icon on the Programs menu within your Start menu, or you may have an icon to double-click on your desktop. Within a command prompt window, you can enter commands such as cd to change directory (that is, folder), and copy to copy files.
For example to copy vsamdemo.cbl from \mfuser\projects\gsdemo\idedemo\source\original into folder \mfuser\projects\gsdemo\idedemo\source:
where x: is the drive containing \mfuser.
This is the command to copy the file into the current directory from subdirectory original.
The ways you can change the shape and size of windows, and reposition the panes within a complex window, are best shown through a short tutorial using the IDE.
The Output window is the white area with several tabs, one of which is Build. By default, the Output window is at the bottom of the IDE.
The mouse pointer changes shape depending on where it is. It's not possible to illustrate the shape, as the shapes used depend on your Windows settings. On this border it has its standard shape (often an arrow). If it's lower, within the Output window itself, or higher, where the border of the Output window meets the border of the main pane above, it may be different.
An outline representing the Output window moves with the pointer. As the pointer crosses the right-hand border of the IDE, this outline changes shape.
Notice that the tip "Press Ctrl to prevent docking" appears at the bottom of the IDE.
The Output window attaches itself to the right-hand border. This is called docking.
Thus you can widen the pane in the usual way.
This makes the Output window into a separate window outside the IDE. It is said to be undocked, or floating.
The output window moves, undocked, to the middle of the IDE.
This docks the window where it was last docked.
Comments on the books? Click Send Us Comments.
Copyright © 2001 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names
used herein are protected by international law.