RegisterSelectionChangeHandler

New to Analytica 6.5

This page describes an esoteric and experimental feature, meaning that it is not officially supported and is subject to change in future releases.

This function applies only to desktop Analytica and does nothing from ACP or ADE.

This function is of use only to the most advanced and specialized Analytica library writers.

Function RegisterSelectionChangeHandler( handlerFn, bRemove )

Registers (or unregisters) a user function that gets called any time the user brings a new application window into focus, or any time the user changes the current object selection in the current window.

This gives your «handlerFn» the opportunity to track what the user is currently working on. This can be used from within your own library to keep track of what the current user context is.

The «handlerFn» can be a UDF or a local function, and side-effects are allowed.

To remove a selection handler, either delete the function or call RegisterSelectionChangeHandler with «bRemove» specified as True.

See also

Comments


You are not allowed to post comments.