Search Locate Previous Next Contents

RTF Editor (RTF)


Description
View or edit a WordPad-compatible rich text file or APL variable. Note that this is not a particularly complete RTF viewer – use Word if you really want to see what a file looks like.

Class Property Table
NameTypeDefaultDescription
HintString
StyleManyOf
FilenameRuntimeFilename (e.g. ‘mydoc.rtf’)
RichtextUserEditable content
EditableBoolDo we enable editing tools
ReadOnlyRuntimeChange readonly-status on the fly
EnabledString‘BIULCR’Enabled tools (default is all)
UnitsOneOf‘Pts’Units for indents and tabstops
HotkeysString‘BIULER’Accelerator keys for all tools (including disabled)
TipsString‘tipsText for button tips for all tools (,sep list)
VisibleRuntimeBoolean singleton
ActiveRuntimeBoolean singleton

Class-specific Events
RBMRight-mouse Menu
KPKeypress
FCFirstChange (by any means)

Class-specific Functions
FileReadTo load/regenerate contents, and
FileWriteTo save the edited contents to file.
SetIndentsSet Left, Firstline, Right indents in current units
SetTabsSet up tabstops in current units
SetTextSet content from a plain text variable
ReadTextQuery the current content with no formatting codes
SetImageAssign a non-default bitmap strip to the tool buttons


Continue to: Floating Palette (RU)
© Copyright Causeway Graphical Systems Ltd 2003