bgiCreateRichTextBox

Category: BGI GUI

Syntax:

bgiCreateRichTextBox:Int(x:Int, y:Int, width:Int, height:Int, parentWin:Int)


Parameters

Returns

Int



Summary

Creates a rich text box: text whose every character can have its own bold, italic, underline, size, font and colour.

Takes x (Int), y (Int), width (Int), height (Int), and parentWin (Int). Lines do not wrap; a horizontal scrollbar appears instead, as on Windows. Black text on white, whatever the desktop theme. Every key pressed in it raises BGI_EVENT_COMMAND_UPDATE with id BGI_EVENT_ID_RICHTEXTBOX and data the length of the text before the key.

Returns gizmo ID on success, 0 if parent not found.

View detailed documentation online



Example

;No example implemented yet


BambooBasic © 2026 Michael Denathorn