AnnSetAutoText Example for Visual J++
Note: This topic is for Document/Medical only.
This example modifies the text string that is used for the undo option on the annotation pop-up menu.
String strText = LEAD1.AnnGetAutoText( (short) LTOCXU.AnnAutoTextConstants.ANNAUTOTEXT_MENU_UNDO );
strText += " - New";
LEAD1.AnnSetAutoText( (short) LTOCXU.AnnAutoTextConstants.ANNAUTOTEXT_MENU_UNDO, strText );