Macintosh Programming Using MS-BASIC 2.0
From the originals
13 scansMachine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.
These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.
PDF page 12
' a selection from one of your menus. The MENU function enables you to detect which menu and which item from that menu was selected. From there, you can route your pro- gram to subroutines that respond to the various items you have incorporated. Figure 1-1 illustrates the use of menus in MS-BASIC 2.0 programs. It is taken from one of the programs discussed in detail later in the book. Notice that you may have up to 20 items in your own menus, just as in the "real thing." Some features are not sup- ported directly from MS-BASIC. You cannot change the type face or font in a menu. You can only place a check mark by an item-no other symbol. You cannot check a dimmed menu item. You cannot set up command key equivalents that are automatically detected by BASIC (although you can program this capability with extra BASIC statements-see Chapter 4). Finally, you cannot install items in the system menus. In particular you can- not install your own desk accessories from an MS-BASIC program. WINDOWS MS-BASIC 2.0 provides you with up to four different windows, which may be of four different types: document, shadowed, one-line border, or framed. Figure 1-2 illustrates these. The WINDOW command allows you to create and open windows on the screen. The WINDOW CLOSE command allows you to close an existing window. The WIN- DOW function provides your program with valuable information it may need while manipulating its windows. ,. • ~6 teenage hacker Rctiue Output Do Messages Window I Bozo Oh frabjous day Tale or two windows Column R Column B lnfundibulum Desserts Gone with the Window Peep Show Window 2 Pigeonhole =====> Eat at Joe·s <===== Creature Feature Kentucky Fried Window Used piHels RHe a lotto L's ltsy bitsy teeny weeny bits This space for rent Fenestra luan Galamian ,;;ny,,. '•'; '' Fig. 1-1 . An MS-BASIC menu with twenty items. 2 ., u
Reading notes: Source text is a fragment of a computer manual excerpt with figure text partly garbled (e.g., 'Rctiue Output Do Messages', 'lnfundibulum'). Reading order of figure labels is uncertain.
- Printed product names
- MS-BASIC 2.0
- Languages
- English