< Previous | Contents | Next >
The crosshair control is a preview control that shows a crosshair to represent the position of Point value. The crosshair is added to an Input by setting the INPID_PreviewControl attribute of an input to "CrosshairControl" in the AddInput function’s attribute table.
There are attributes that apply to all preview controls. PCD_OffsetX and PCD_OffsetY will shift the crosshair in the viewer by the specified distance. This is useful if you want a pivot crosshair to follow the translation crosshair (as is the case with Fusion’s transform tool). To implement this behavior, you need to update those attributes in the NotifyChanged() event handler.