TextEdit
Initialize / Allocate
TEInit Initialize for using TextEdit
TENew Create a new edit record
TEStylNew Create a style-aware edit record
TEDispose Release memory used by an edit record
Access Text
TEGetText Obtain the text of an edit record
TESetText Identify the text of an edit record
Insertion Point / Select
TEIdle Force the insertion point caret to blink
TEClick Indicate when a mouse-down event occurs
TEActivate Make an edit record active
TEDeactivate Make an edit record inactive
TESetSelect Set the selection range
TEGetOffset Obtain a character offset associated with a screen point
TEGetPoint Obtain screen coordinates of an edit record character
Edit
TEKey Insert a key into an edit record
TEInsert Insert text into an edit record
TEStylInsert Insert text and style information into an edit record
TEDelete Delete selection range
TECopy Copy selection range to the TextEdit scrap/desk scrap
TECut Cut selection range
TEPaste Insert TextEdit scrap into edit record
TEStylPaste Paste text + styles from the desk scrap into an edit record
Styles
GetStylHandle Obtain a handle to a TEStyleRec
SetStylHandle Set Style handle for a style-aware edit record
GetStylScrap Copy styles of selection; obtains handle to StScrpRec
SetStylScrap Apply styles in an StScrpRec to a range of text
TEGetStyle Obtain style and line height info about a character
TESetStyle Apply a style to currently selected text
TEReplaceStyle Replace style characteristics in currently selected text
TENumStyles Obtains a count of style runs in a range of text
TEContinuousStyle Check if a style element is continuous across selection
Display / Scroll
TEAutoView Enable/disable automatic scrolling
TEScroll Scroll text within its view rectangle
TEPinScroll Scroll text into view; stop at last line
TESelView Scroll selection into viewing rectangle
TEUpdate Update (draw) text in specified rectangle
TESetJust Set justification mode
TEGetHeight Obtain height of one or more lines of text
TextBox Draw text which won't be edited
Scrap
TEFromScrap Copy desk scrap to TextEdit scrap
TEToScrap Copy TextEdit scrap to desk scrap
TEGetScrapLen Obtain length of text in the TextEdit scrap
TESetScrapLen Set the length of text in the TextEdit scrap
TEScrapHandle Get handle leading to TextEdit internal scrap
Advanced / Customize
TECustomHook Install custom handlers for TextEdit bottleneck routines
SetClikLoop Install a routine for custom mouse dragging
SetWordBreak Install a custom 'word-break' routine
TECalText Force TextEdit to calculate line-starts
TEFeatureFlag Return last setting of a specified features' bit