TE Edit Control Java / HTML-JavaScript Help
Product page

Hypertext

This event is sent after the user clicks on a hyperlink.

void Hypertext(TejEvent ev)
{
  ....
}

The relevant TejEvent fields:

    String code;            // hyperlink code (url)
    String text;            // hyperlink text or phrase
    boolean   DoubleClick;  // true if mouse double clicked,
                               otherwise single click
    boolean   used;         // Your application should set 
                               this field to true if it acts
                               upon this message 

Please note that the hyperlink cursor must be toggled on to display the 'hand' cursor:

if (!tej.TerMenuSelect2(tej.ID_SHOW_HYPERLINK_CURSOR)) 
   tej.TerCommand(tej.ID_SHOW_HYPERLINK_CURSOR)

(turn-on the display of the 'hand' cursor if not already on)