Widget/API/RegisterEvent

RegisterEvent
Registers an ingame event to watch. A frame is needed with an ..._OnEvent function which captures events and acts accordingly to the registered events.

Syntax: RegisterEvent( string )

Where string is an event (see RoM Wiki List of Eventsfor a list of events)

Example

XML Frame definition

LUA interpretation