Skip to content

EventID

Claude edited this page Oct 27, 2026 · 4 revisions
BlitzPlus

EventID

EventID:Int32

Returns: The kind of the event. 0 after a WaitEvent that timed out.

Description

Gives the kind of the event that WaitEvent took last, which is the same number that function returned. See the table at EventData for all kinds.

Examples

Graphics 320, 240, 32, 2
win  = CreateWindow("Buttons", 20, 20, 260, 160, Desktop(), 3)
info = CreateLabel("Click the button", 10, 10, 230, 40, win)
go   = CreateButton("Go", 10, 70, 80, 28, win)
Repeat
	Select WaitEvent()
		Case $401
			If EventSource() = go Then SetGadgetText info, "GadgetAction $" + Hex$(EventID())
		Case $803
			End
	End Select
Forever

Media

EventID

Related Commands

EventData, EventSource, EventX, EventY, EventZ, PeekEvent, WaitEvent

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally