WPTools Manual



Search


(press enter to search)

Procedure TWPReporterFieldsCollection.AppendToMenu(Menu:TMenu; OnClickEvent:TNotifyEvent)

Unit: WPRTEReport
Class: WPRTEReport.TWPReporterFieldsCollection

Parameters

  • Menu:TMenu
  • OnClickEvent:TNotifyEvent

Description

Appends items to a menu or popup menu. The high word of the 'Tag' of each menu item will be set to the item index in this collection. The low word will be set to the item index of the field name in the FieldNames list of each item. You can use the to convert the tag value back to a field name. Unless SimpleFieldNames is set to TRUE AppendToMenu and GetFieldName will build a field name always with the ParentDatasetName + '.' + fieldname.
AppendMenu will not append field names which cannot be used because the the cursor is currently not in the group specified by property RequiredParentGroup.