Expose an object as a property of a display
By default, when an object is added to a Graphic display, it is not exposed as a property of the display and it does not appear in the drop-down list in the code window in VBA because the object's
ExposeToVBA
property is set to Not Exposed
.To expose an object as a property or to write an event handler:
In the Graphics editor, in a display, do one of the following:
- Right-click an object and selectVBA Code.This changes the value of theExposeToVBAproperty fromNot ExposedtoVBA Control, if the object exposes events, or toType Info Extension, if the object does not expose events.
- Right-click the object, selectProperty Panel, and change theExposeToVBAproperty fromNot ExposedtoVBA Controlor toType Info Extension.
Provide Feedback