Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

nr:PropertyReference

The nrPropertyReference primitive is used to reference the runtime value of any other property in a theme.

Prototype

nr:PropertyReference(path, propid)

nr:PropertyReference is used as the value of an nr:Properties() property. When an nr:Properties() property is set using this primitive, the value of that property is taken from another property at runtime.

Parameters

  • path: the full name of the table of properties being referenced
  • propid: the ID of the property being referenced

nr:PropertyReference example

The following example sets the foreground color of static widgets to the value of the background color defined in the blackbgnoborderwidth.properties table.

AEECLSID_CStaticWidget = { --Applied by default to all static widgets
   properties = nr:Properties {
      {PROP_FGCOLOR, nr:PropertyReference("blackbgnoborderwidth.properties",
       PROP_BGCOLOR) },
   },
},

For a more detailed example, see Writing a Theme Resource File.