.NET Interface >

AddEventHandler

AddEventHandler
assigns the specified Mathematica function func to be called when the given event event fires.
  • AddEventHandler can be used to wire up Mathematica callbacks for events in .NET user interfaces, such as a button click.
  • The following options can be given:
SendDelegateArgumentsAllwhich delegate arguments to send to the Mathematica event handler function
CallsUnshareFalsewhether or not your event handler function calls the advanced function
  • The function argument can be a string, a symbol naming a Mathematica function, or a pure function, and it will be called with whatever arguments the event sends.
  • Alternatively, use NETNewDelegate to manually create a delegate and pass that as the second argument instead of the function.
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF