bgiCreateLabel

Category: BGI GUI

Syntax:

bgiCreateLabel:Int(text:String, x:Int, y:Int, width:Int, height:Int, parentWin:Int)


Parameters

Returns

Int



Summary

Creates a static text label.

Takes text (String), x (Int), y (Int), width (Int), height (Int) and parentWin (Int).

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

The text starts at the top left and wraps between words to the label's width. A word wider than the label, and lines below its height, are cut off - the label stays the size asked for and never spreads over controls next to it. An & marks the next letter as a keyboard shortcut and is not shown; write && for an ampersand.

View detailed documentation online



Example

;No example implemented yet


BambooBasic © 2026 Michael Denathorn