For compatibility with HP BASIC programs, HTBasic pens can be customized in the CONFIG file including:
-
Settable pens are pens shared with BASIC programs that HTBasic is allowed to set.
-
Logical pens define the area to be colored and the physical pen to use
-
Physical pens provide the color for the specified logical pen
Settable Pens Table
System
|
Settable Pens
|
2 - 16 pen system
|
0-15
|
17 - 64 pen system
|
0-15, 54, 55, 62, 16-63
|
65 - 256 pen system
|
16-31, 230, 231, 238, 0-15, 32-255
|
Widgets that require more colors than those defined in the Logical Pens Table create their own private palette that does not directly conflict with BASIC programs. However, when such a widget receives the input
focus, it sets the system palette to match its private palette. All other applications must map into that palette on a closest match basis.
Logical Pens
Logical pens define the area to be colored and which physical pen to use. The actual color of the physical pen is specified in the
Physical Pens Table. See
Logical Pens Table for a list of logical pen numbers and associated physical pen numbers.
For example, from the Logical Pens Table, Logical Pen number 33 represents the color for Scrollbars. For a 64-color pen system, the associate physical pen number is 11. From the Physical Pens Table, the actual pen 11 color is interactive gray.
Note that BuilderPlus logical pens are listed in bold blue in the Logical Pens Table, while the other pens are for compatibility with previous versions of HP BASIC Plus.
Physical Pens
Physical pens provide the color for the specified logical pen. The
Logical Pens Table. specifies which physical pen to use for a specified logical pen. The actual color of the physical pen is specified in the
Physical Pens Table.
The Physical Pens Table specifies the color map value that is set for each physical pen.If an entry for a required pen (a pen referenced from a logical pen) is not currently provided in the table (e.g., pens 32-47), insert as required.
The actual display's color map is only altered for the pens that are referenced by a logical pen from the Logical Pens table and are settable as specified above for the current graphics system, either 16-, 64-, or 256-pen.