home *** CD-ROM | disk | FTP | other *** search
- smxKey32 (Zinc) Demonstration 10/21/96
-
- *** PRINT THESE NOTES so you can read them as you run the demos
- --------------------------------------------------------------------------
-
- Requirements:
- 386 or higher
- 2MB of extended memory or more
- IDE drive C: with at least 4MB free
- VGA display (or at least one capable of running in graphics mode)
-
- Installation:
- Change directory to the root directory of your C: drive
- Put this Demo Disk in drive X:
- Type "pkunzip -d X:zincdemo"
- to uncompress files onto your C: drive
- This will create the following directories in your root:
- \METAWNDO
- \ZINCDEMO
- (if you already have directories with these names, please rename
- them temporarily when running the demos. When done, you may erase
- these directories and put yours back.)
-
- IMPORTANT: These directories must be in the root and you must not
- change their names or the demos will not run, since they are hard-coded
- to look in certain paths for files.
-
- Running the Zinc/smx Demos:
- 1. Boot to DOS, using stripped-down autoexec.bat and config.sys files
- that don't load memory managers such as EMM386.SYS
- 2. Change to the \ZINCDEMO directory.
- 3. Exit from any DOS shells such as Norton Commander (or boot without
- loading them).
- 4. Type "demo match" to run the MATCH demo.
-
- What You Should See:
- - The demo file is quickly copied to the root (as ~app.exe)
- - The screen will switch to graphics mode (a message will flash
- by indicating that MetaWINDOW has done this).
- - Then, the screen will be solid blue-gray for a while, as the demo
- is initializing and loading data from disk.
- - After a delay, you will see a Window pop up in the middle of the
- screen with rows of "cards" -- this is the Concentration game.
- - Use the keyboard cursor keys to move the selection. Press spacebar
- or Enter to turn over the card. See below for more about the demos.
- - When you exit (F3), you will see the C:\> prompt.
-
- SEE THE TROUBLESHOOTING SECTION AT THE END IF YOU HAVE ANY PROBLEMS.
-
- A mouse driver has not been implemented for smxKey yet (we're working
- on it), so you will have to use the keyboard (sorry).
-
-
- Useful Keys for the Demos:
- Alt-F6 move to different window
- F10 system menu: move, resize, minimize, etc. the window
- F3 exit, close window
- F1 help (when available)
- Arrow Keys move cursor, move to different fields and buttons
- Tab move to next field
-
-
- To Run the Other Demos:
- The demo to run is specified by the parameter to DEMO.BAT.
- Type "demo" for a list of valid choices.
-
-
- About the Demos
- ===============
-
- MATCH:
-
- This is a running version of the zinc 4.2 example program "MATCH"
- which is basically a version of the popular game known as "Concentration".
- It runs under smx and pmEasy 32 bit versions, compiled with the Borland C++
- compiler, using zinc 4.2 and MetaWINDOW/386 v 5.0b.
-
- Rules of the game:
- Use arrow keys to select your "card" and hit <Enter> or <Space> key to
- flip the card. You may flip any two cards at a time. If the images
- match then the cards are removed. If they don't match then the cards
- are flipped back over by the program. The object of the game is to
- remove all of the cards by matching. (No, there is no score and you
- don't get any congratulations for finishing.)
-
- To exit the program press <F3>, <Alt-F4>, or select exit from the menu
- (Alt-G, X).
-
- We have supplied the zinc code for this program example which has been
- slightly modified to work under smx. The only change is to use the smx
- timer device, UID_XTIMER, which is a derivative of the zinc timer device,
- UID_TIMER. This demonstrates how easy it is to port moderately complex
- zinc application code from other operating systems to smx.
-
- This means that you can design and test your user interface with zinc
- designer on your development computer under DOS or Windows and then,
- with minimal modifications, you can port that code to run on your target
- system with smx.
-
- GRAPH:
-
- This demo shows 4 windows with different types of graphs in them. Use
- Alt-F6 to switch windows. To Move or Size a window, press F10 for the
- system menu. Use the cursor keys to move/resize. When done, press Enter.
- Source code for this example is provided in the GRAPH directory.
-
- HELLO:
-
- The help system is demonstrated in this demo. Press F1 to bring up the
- help screen. Tab and space move around in it and select different topics.
-
- This demo also demonstrates the error system. Type a different number
- in place of "42" and tab off the field. You will get an error message.
-
- Use the tab key to move between fields.
-
- METADEMO:
-
- This one demonstrates some of the capabilites of MetaWINDOW, alone.
- This shows our protosystem with a few tasks displaying their output in
- graphics mode rather than in text mode. Also, the metaworld demo
- (METWORLD.C) is run on the right side of the screen, which displays a
- few common shapes. Use the arrow keys to move the blue box around on
- the screen. Note that as you move the box, fine black lines are left
- in the text and shapes on the screen, since they are not redrawn when
- the box moves.
-
-
- No modifications were made to HELLO or GRAPH to get them working under
- smxKey. Only one modification to MATCH was necessary: changed UID_TIMER
- to UID_XTIMER. The Windows versions of the demos (wmatch.exe, wgraph.exe,
- whello3.exe) are provided to show that the same Zinc application code
- that works under Windows will also work under smx.
-
-
- Running the Same Demos under Windows
- ====================================
-
- Reboot with your normal autoexec.bat and config.sys
- From the Program Manager, select File, then Run from the menu.
- Type the path and name of the demo to run:
- c:\ZINCDEMO\wmatch.exe
- c:\ZINCDEMO\whello3.exe
- c:\ZINCDEMO\wgraph.exe
- Repeat for the other demos.
-
-
- Troubleshooting
- ===============
-
- - MetaWINDOW error code -6 when GRAFMODE.EXE runs is most likely due to
- the METAPATH environment variable not being set. Put a pause statement
- in DEMO.BAT after the SET command to see if "Out of Environment Space"
- appears on the screen. If so, the problem is either that you really are
- out of environment space or you are running a DOS shell, such as
- Norton Commander which prevents you from setting environment variables.
- 1. To increase your environment space, use the "/e:" command
- for shell in your config.sys file:
- shell=c:\dos\command.com/p/e:1024
- 2. Quit Norton Commander or any similar package you are running.
-
- - If the screen goes blank for a while, then comes back to DOS, the
- problem is most likely that you did not install the files to the proper
- directories or you moved files. Keep all files where they are after
- installation. You must have
- \METAWNDO
- \ZINCDEMO
- in your root of drive C, and drive C must be an IDE drive. You may not
- run these demos from another drive or change the paths in any way,
- since data is loaded at run-time, and the demos are hard-coded to look
- for it in particular places.
-
- - It is also possible that pmEasy is having trouble reading from your
- hard disks for some reason. Some IDE drives may be a problem.
- Try running on a different system.
-
- - Ensure that you are booting "clean". We suggest you create special
- autoexec.bat and config.sys files that do the absolute minimum that
- is necessary to boot your system. Particularly, they must not load
- memory managers, such as EMM386.EXE. Also, don't try to run from a DOS
- box in Windows or other protected mode operating system!
-
- - If you find that you are unable to run another demo or other program
- after running a demo, you may need to reboot the computer. The demos
- access drive C: using smxFile and pmEasy, and these accesses may
- cause DOS to return in a confused state.
-
- - The main cause of difficulty in determining what is going wrong is
- the screen switch to graphics mode. The problem is that pmEasy displays
- to text video memory, so you see no output! Because of this, you cannot
- see whether pmEasy is hung up, or the Zinc demo application is hung up.
-
- - If the demos run, but the keyboard does not respond correctly, ensure
- that NumLock and CapsLock are off and start the demo over again.
-
- - Demo aborts after a while (maybe 20 minutes or so). This demo disk uses
- a run-limited version of pmEasy. Restart the demo.
-
- - A simpler, standard 386 or 486 system may work better for running
- the demos than a high-end desktop machine with special hardware,
- such as special disk controllers or graphics boards. We do not know
- of any particular problems, but this is a tip to keep in mind if
- you have problems running these demos on your computer.
-
- - Call us if you have trouble!
-
-
- To Un-Install the Demos
- =======================
-
- Delete the \METAWNDO and \ZINCDEMO directories
- Delete ~app.exe from the root.
-
-
-