bgiCreateLink

Creates a clickable hyperlink control with custom text and URL. Takes displayText (String), url (String), x (Int), y (Int), width (Int), height (Int), parent (Int), and isEvent (Int). Returns gizmo ID, or 0 if parent not found or creation failed.

BGI GUI

Parameters & Returns

Parameters

displayText String
url String
x Int
y Int
width Int
height Int
parent Int
isEvent Int

Returns

Int

Quick Summary

Creates a clickable hyperlink control with custom text and URL. Takes displayText (String), url (String), x (Int), y (Int), width (Int), height (Int), parent (Int), and isEvent (Int). Returns gizmo ID, or 0 if parent not found or creation failed.

Technical Exegesis...

Creates a clickable hyperlink control with custom text and URL. Searches gizmoMap for parent window ID. Increments gizmoIDCount for unique ID. Uses GetActualParentHWND for scroll panel support. Creates BUTTON with WS_CHILD | WS_VISIBLE | BS_OWNERDRAW style for custom drawing. Creates underlined font by copying hFont LOGFONTA, setting lfUnderline=TRUE, calling CreateFontIndirectA(). Applies font with WM_SETFONT. Stores URL in linkURLMap[gizmoIDCount] and isEvent flag in linkIsEventMap[gizmoIDCount].

Example

Example.bam
; No example implemented yet