AnnHyperlinkMenu example for Visual J++

Note: This topic is for Document/Medical only.

The following is an example of AnnHyperlinkMenu event code, which includes a call to AnnSetHyperlinkMsg.

private void LEAD1_annHyperlinkMenu(Object source, LTOCXU.LEAD.AnnHyperlinkMenuEvent e)
{
   // set HyperLink to type ANNLINK_ANNEVENT5
   // and set the 5 params to some values.
   for( int x = 0 ; x < e.uCount ; x++ )
      LEAD1.AnnSetHyperlinkMsg( e.aObjects.toSafeArray().getInt( x ), (short) LTOCXU.AnnHyperlinkTypeConstants.ANNLINK_ANNEVENT5, 5, 4, 3, 2, 1 );
}