Creates a rich text editor with formatting support.
Takes x (Int), y (Int), width (Int), height (Int), and parentWin (Int).
Returns gizmo ID on success, 0 if parent not found.
BGI GUI
Parameters & Returns
Parameters
xInt
yInt
widthInt
heightInt
parentWinInt
Returns
Int
Quick Summary
Creates a rich text editor with formatting support.
Takes x (Int), y (Int), width (Int), height (Int), and parentWin (Int).
Returns gizmo ID on success, 0 if parent not found.
Technical Exegesis...
Creates a rich text box control supporting formatted text (bold, italic, colors, fonts). Searches gizmoMap for parent HWND. Handles scroll panels. Auto-increments gizmoIDCount. Loads Rich Edit library (Msftedit.dll). Creates using MSFTEDIT_CLASS (RichEdit 4.1) with WS_CHILD | WS_VISIBLE | WS_BORDER | ES_MULTILINE | WS_VSCROLL | ES_AUTOVSCROLL style (multi-line with vertical scrolling). Sets GUI font. Creates CGizmo with custom RichTextBox type, stores position, dimensions, state.
Creates a rich text box control supporting formatted text (bold, italic, colors, fonts). Searches gizmoMap for parent HWND. Handles scroll panels. Auto-increments gizmoIDCount. Loads Rich Edit library (Msftedit.dll). Creates using MSFTEDIT_CLASS (RichEdit 4.1) with WS_CHILD | WS_VISIBLE | WS_BORDER | ES_MULTILINE | WS_VSCROLL | ES_AUTOVSCROLL style (multi-line with vertical scrolling). Sets GUI font. Creates CGizmo with custom RichTextBox type, stores position, dimensions, state. Returns gizmo ID on success, 0 if parent not found.
Rich text boxes support formatted text editing beyond plain text. Can display and edit RTF (Rich Text Format) documents with colors, fonts, sizes, bold, italic, underline, etc. More advanced than regular multi-line textboxes. Use specialized rich text functions to apply formatting. Common for word processing features, formatted notes, or email composition. Supports embedding images and objects (OLE).