Macros are some predefined strings that can be embedded in any string based properties such as "PV Name", "Text", "Tooltip", "Scripts" and so on.
The macro format can be either $(macro_name) or ${macro_name}
There are two types of macros:
It could be defined in the preference page of BOY
(open it from menu: CSS->Preferences...->CSS Applications->Display->BOY) or
the Macros property of container widgets: Display, Grouping Container and Linking Container.
For example: If there is a macro "1=one", the text "$(1)_two_three" will be replaced to "one_two_three" in run mode.
Attention: Macro name only allows letters and numbers (should not start with number).
This allows you access the value of a property of the widget in run mode. In this case, the macro_name is the property id of the widget property. For example, $(pv_name), $(pv_value), $(forground_color)...
A good example of Widget Property Value Macro is the tooltip: A tooltip of "$(pv_name)$(pv_value)" will display the PV Name and its value in run mode.