Event handling for a marked text.

  • Is it possible to specifically mark text inside the control and subscribe events like Click, Double Click, Context Menu Clicked, Mouse Hover etc.

    For example: Assuming the following text has already loaded -

    Foo Bar Baz.

    Is it possible to subscribe events specifically on "Foo" for example like a click event when ever the user clicks on "Foo" ?

    Thanks in advance.

    • Offizieller Beitrag

    Hi,

    It is not possible that "some text" subscribes the events - the controls does not use "widgets". But You can subscribe click events and find the position where the user clicks.

    It is also possible to mark some text to be a hyperlink and an event is triggered when the user clicks on that (double or, optionally, single)

    Technically also fields and bookmarks could be "hyperlinks".

    In the event you can show a popup dialog and mopdify the embedded text.

    Fields, bookmarks and hyperlinks are marked with start end end obejects (which can be visible, or not)

    <a>....</a>

    Inside regular text and images is included. That can be updated under program control.

    Julian

  • Thanks Jullian for the reply.

    Is there a way to do this by *not* changing the structure of the doc. As you said before in your reply we can do this by adding hyperlinks, bookmarks. But adding these(hyperlinks,bookmarks) we would be changing the structure of the document (like the underlying rtf).

    Thanks in advance again for your reply.

    -Abi

    • Offizieller Beitrag

    Hi,

    Only if you add such objects (hyperlink tags, fields) it is possible completely delete and recreated fields - without having to reload the template.

    I once experimeted with tag ids which were added to characters which would not add additional text and work more like "coloring" - but that has severe implications and problems. It also would not support empty fields.

    Of course it would be possible to save the RTF without the fields, for example as export to Word or so.

    Julian