FrontEndEventActions

FrontEndEventActions
is an option for the notebook front end that gives a list of actions to perform when specified user-interface events occur.

DetailsDetails

  • FrontEndEventActions->{"event1":>action1,"event2":>action2,} specifies that should be evaluated whenever occurs in connection with the notebook.
  • The possible event specifications are the same as for EventHandler, with the following addition:
  • "WindowClose"window being closed
  • FrontEndEventActions is set as an option for $FrontEnd.
  • By default, any action specified for an event by FrontEndEventActions will override any default action that the Wolfram System would take for that event.
  • The default behavior can be changed by including rules for PassEventsDown in the list given as the setting for FrontEndEventActions.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Set up the front end to track the window title of notebooks that are being closed:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
In[4]:=
Click for copyable input
Introduced in 2007
(6.0)