All Manuals > CAPI User Guide and Reference Manual

12 Creating Panes with Your Own Drawing and Input

The CAPI provides a wide range of built-in panes, but it is still fairly common to need to create panes of your own. In order to do this, you need to specify both the input behavior of the pane (how it reacts to keyboard and mouse events) and its output behavior (how it displays itself). The class output-pane is provided for this purpose.

An output-pane is a fully functional graphics port. This allows it to use all of the graphics ports functionality to create graphics, and it also has a powerful input model which allows it to receive mouse and keyboard input.

output-pane has a subclass pinboard-layout, to which you can add graphic objects, which makes it easier to organize the interaction when it becomes complex. pinboard-layout is probably the more useful class.

12.1 Displaying graphics

12.2 Receiving input from the user

12.3 Creating graphical objects

12.4 output-pane scrolling

12.5 Transient display on output-pane and subclasses

CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:22