show caret position when editor if not focused

  • I need a way to display the cursor (caret) even when the editor is out of focus. the user will switch back/forth between the text and a list of fields show in the tree structure on the left-hand side of the document and will frequently forget where the cursor was which causes some issues!

    I have loohed at the cursor data structure (TWPRTFDataCursor) but a) could not find how to get to it from the document and b) could not find anything related to my problem (could be that I did not look properly)

    thanks in advance for your suggestions

    Didier

    • Offizieller Beitrag

    Hi,

    I would use a selection. It can be displayed wehn not in focus.

    You will need some code, such as

    SetSelPosLen( CPPosition, 1)

    to select one character.

    It is not possible to show the cursor "caret" in the non focussed window.

    Julian