Situational Awareness Projects > Customize a Project > Defining a Right Click Action on Equipment

Defining a Right Click Action on Equipment

In Situational Awareness Projects you can define a right-click action/command on a piece of equipment (using a callback) to be used at runtime by setting the default '_CALLBACK_EquipmentRightClick' label to a custom function of your own. The current default function is "DefaultEquipmentRightClickCallback".

The '_CALLBACK_EquipmentRightClick' label is set by default in the SA_Style1_MultiRes starter project. To view go to Standards | Labels.

The custom function you create needs to take the following two arguments:

If you do not define a label specifying a custom function or the default function, on compiling your project, a callback error will occur.

Published June 2018