Graph Document-Level Events
The following table includes the document-level events that are available for graphs:
Command | Action |
Activate | Executes when the graph receives the focus within the Statistica workspace. |
BeforeAddToWorkbook | Executes before the graph is added to a workbook. |
BeforeClose | Executes when you close the graph. Before the document closes, the events within this function will first execute. An example of using this feature would be to add additional functionality, such as saving the file to multiple locations or exporting it to another application. |
BeforeDoubleClick | Executes when you double-click anywhere on the graph. Before an edit dialog (depending on which area of the graph was double clicked on), the events within this function will first execute. Examples of using this feature would be to prevent users from altering a graph's content or to add additional functionality such as applying a custom style to the clicked area. |
BeforePrint | Executes when you print a graph. Before the graph prints, the events within this function will first execute. Examples of using this feature would be to prevent users from printing the document or adding new functionality such as calling an alternate, customized printing dialog. |
BeforeRightClick | Executes when you right-click anywhere on the graph. Before the shortcut menu appears, the events within this function will first execute. An example of using this feature would be to add additional functionality to displaying shortcut menus, such as highlighting the entire contents of the graph. |
BeforeSave | Executes when you save changes made to the graph. Before the changes are actually saved, the events in this function will first execute. An example of using this feature would be to prevent users from permanently changing a graph. |
CaseStatesChange | Executes when changes are made to the case states via the interactive brushing tool. |
Deactivate | Executes when the graph has lost the focus to another window within Statistica. |
OnClose | Executes when the graph is being closed. |
OnEODrag | Executes when an embedded object is being dragged. |
OnEODragEnd | Executes when an embedded object is finished being dragged. |
OnEODragSelect | Executes when a selected embedded object is dragged. |
OnPointSelect | Executes when a point is selected. |
OnToolTipDisplay | Executes when the mouse hovers over a point within a graph. An example of using this functionality would be to add your own custom text to the information reported in the ToolTips on Plot feature. |
Open | Executes when the graph is being opened. Note, this will not run unless autorun was specified when the macro was last edited. |
SelectionChanged | Executes when the selected points in the graph change. |
For additional events, see Statistica Events, Application-Level Events, Report Document-Level Events, Spreadsheet Document-Level Events, and Workbook Document-Level Events.
For examples, see Application-Level Events Example and Document-Level Events Example.
Copyright © 2021. Cloud Software Group, Inc. All Rights Reserved.