Apple II
Sample Code Notes
_____________________________________________________________________________
                                                  Developer Technical Support

#4:    Custom.Control

Version:    3.0                                                     June 1990

APW Components:    BoxCtrl.asm
                   BC.Stds.asm
                   BC.DProc.asm1
                   BC.DProc.asm2
                   Full.Build
                   Build
                   Build.Macros 

MPW Components:    BoxCtrl.Aii
                   BoxCtrl.DefProc.Aii
                   BoxCtrl.Stds.Aii
                   MakeFile

This sample program addresses the art of creating and supporting custom 
controls.  BoxCtrl generates a rectangle with small marks at each midpoint and 
corner.  Clicking and dragging the mouse when the cursor is over a mark causes 
the rectangle to shrink, grow, and move.
_____________________________________________________________________________

The 65816 assembly language source code shows how to define both a custom 
control and a simple button control, and how to use the custom control to move 
and resize the button control.  The demo was written in response to a number 
of developer requests for more information on how to support custom controls.

APW users need APW v.1.0, APW Tools & Interfaces v.1.1, and Apple IIGS System 
Software 5.0.2 or later.  Three APW command files, Full.Build, Build, and 
Build.Macros allow you to perform complete or partial rebuilds of the load 
file BoxCtrl.

MPW IIGS users need MPW v.3.0, MPW IIGS Tools v.1.1, and MPW IIGS Assembler 
v.1.0 or later.  The name needed by the MPW Build menu's Build option can be 
found in the MakeFile.
