How to set the text cursor at runtime

  • I have a question related to setting the default text cursor in WPTools4 at runtime.

    Although you can change the default text cursor at design time, you cannot effectively change the same property at runtime (it has no effect as far as I can determine).

    I found that it is possible to set the textobjectcursor and hyperlinkcursor at runtime, but not the cursor for regular text.

    For example:

    WPRichText1.hyperlinkcursor := somevalue

    Which works, but this does not have any effect:

    WPRichText1.cursor := some_other_value;

    How to set the default text cursor at runtime?

    Also, when you create a TWPRichText instance on the fly (e.g. in the formcreate handler use TWPRichText.create ), the default text cursor is always a pointer. It is not possible to change it to anything else. This problem seems to be related to the above one.

    Best regards,

    Henk Hagedoorn
    registered user of WPTools 3 + 4 + 5