How to add a cursor that follows a curve?

A cursor will follow the active curve if Plot->Layout->Cursor is checked.