bgiGetEventSource

Returns the gizmo ID of the control that triggered the current event. Takes no parameters. Returns the value of the global variable LuiSource.

BGI GUI

Parameters & Returns

Parameters

This function takes no parameters.

Returns

Int

Quick Summary

Returns the gizmo ID of the control that triggered the current event. Takes no parameters. Returns the value of the global variable LuiSource.

Technical Exegesis...

Returns the gizmo ID of the control that triggered the current event. Returns the value of the global variable LuiSource. This is the specific control ID (gizmo handle) returned by control creation functions like bgiCreateButton, bgiCreateTextBox, bgiCreateTrackbar, etc. Returns 0 when no event is pending or if the event source is not a gizmo (e.g., window close event).

This function identifies the exact control instance that generated the event.

Example

Example.bam
; No example implemented yet