Adding Mouse-Over Ability to HTML Trees
To add mouse-over ability to HTML tree elements, you must add fields to the TREECTL_HDR_SBR record and PeopleCode to the program to set the values and the images.
-
Add the following fields to the TREECTL_HDR_SBR (tree control header subrecord) record.
-
COLLAPSED_MSGNUM
-
COLLAPSED_MSGSET
-
END_NODE_MSGNUM
-
END_NODE_MSGSET
-
EXPANDED_MSGNUM
-
EXPANDED_MSGSET
-
LEAF_NODE_MSGNUM
-
LEAF_NODE_MSGSET
-
-
Add the following PeopleCode to set the message set and number for the mouse-over text:
&REC.GetField(Field.EXPANDED_MSGSET).Value = 2; &REC.GetField(Field.EXPANDED_MSGNUM).Value = 903; &REC.GetField(Field.COLLAPSED_MSGSET).Value = 2; &REC.GetField(Field.COLLAPSED_MSGNUM).Value = 904; &REC.GetField(Field.END_NODE_MSGSET).Value = 2; &REC.GetField(Field.END_NODE_MSGNUM).Value = 905; &REC.GetField(Field.LEAF_MSGSET).Value = 2; &REC.GetField(Field.LEAF_MSGNUM).Value = 906; -
Add the following fields to the TREECTL_NDE_SBR record:
-
DESCR_MSGNUM
-
DESCR_MSGSET
-
-
Add PeopleCode to set the DESCR_MSGNUM and DESCR_MSGSET fields.
These two fields should be set to the correct message number and message set values that contain the text to be used as the mouse-over text.