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
displayTextString
urlString
xInt
yInt
widthInt
heightInt
parentInt
isEventInt
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].
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]. Creates CGizmo with GIZMO_LINK type, adds to gizmoMap. Returns gizmo ID, or 0 if parent not found or creation failed.
This function creates a hyperlink-styled button control. BS_OWNERDRAW allows custom rendering (blue text). Underlined font gives traditional hyperlink appearance. The isEvent parameter controls behavior: if 1 (true), clicking fires BGI_EVENT_COMMAND_CLICK event with BGI_EVENT_ID_LINK and sets clickedLinkURL global (accessible via bgiGetLinkURL()); if 0 (false), clicking directly opens URL in default browser via ShellExecute. URL stored in linkURLMap for both modes. Common pattern: create link with isEvent=1, check event system for clicks, call bgiGetLinkURL() to get clicked URL. For direct browser opening without events, use isEvent=0.