Next: , Previous: , Up: Accessing Mouse Event Positions   [Contents][Index]


25.5.4.5 Event Toolbar Position Info

Function: event-over-toolbar-p event

Given a mouse-motion, button-press, button-release, or misc-user event, this function returns t if the event is over a toolbar. Otherwise, nil is returned.

Function: event-toolbar-button event

If the given mouse-motion, button-press, button-release, or misc-user event happened on top of a toolbar button, this function returns the button. Otherwise, nil is returned.