Important: The information in this document is obsolete and should not be used for new development.
The Scrap Style Table
The style scrap record contains the scrap style table. Unlike the main style table for an edit record, the scrap style table may contain duplicate elements; the entries in the table correspond one-to-one with the style runs in the text. ThescrpStartChar
field of each entry gives the starting position for the run.The
scrpStyleTab
data type defines the scrap style table data structure, which is an array of scrap style element records. TheScrpSTElement
data type defines each scrap style element record.
TYPE ScrpSTElement = RECORD scrpStartChar: LongInt; {offset to start of style} scrpHeight: Integer; {line height} scrpAscent: Integer; {font ascent} scrpFont: Integer; {font family ID } scrpFace: Style; {character style} scrpSize: Integer; {size in points} scrpColor: RGBColor; {absolute (RGB) color} END; ScrpSTTable = ARRAY[0..1600] OF ScrpSTElement;
Field Description
scrpStartChar
- The offset to the beginning of a style record in the scrap.
scrpHeight
- The line height. You can determine the line height and the font ascent using the QuickDraw routine
GetFontInfo
described in the chapter "QuickDraw Text" in this book.scrpAscent
- The font ascent. See
scrpHeight
.scrpFont
- The font family ID.
scrpFace
- The style (such as plain, bold, underline).
scrpSize
- The size in points.
scrpColor
- The RGB (red, green, blue) color for the style scrap.