- tdReportGroup[]
ptaReportGroup - Integer
piImageFolderClosed - Integer
piImageFolder - Integer
piImageAbout
Increment_Group_Count(String sGroup)
Method to keep track of group labels and the count of items within the group
- tdReportGroup[]
taReportGroup - Integer
iGroup - Boolean
bFoundGroup
- Integer
Group_Count(String sGroup)
Method to return the number of items within a group (specified by the label)
- Integer
iRetVal - Integer
iGroup - tdReportGroup[]
taReportGroup
OnCreate()
OnCreate. Set a few more properties that we don't (yet) have property wrappers for.
OnDefine_Columns()
OnCreateColumn(Integer iColumn Handle hoCol)
Set the Tree Column
OnOpen_DataSource()
We are NOT opening a data source BUT we will use this suitable hook for clearing file buffers, initialising properties and loading icons
- Integer
iIndex - tdReportGroup[]
taReportGroup
OnPrepare_RowData()
Find next record in db. Use Add_Item_Data to upload values we want displayed in the report control (plus an additional reference value)
DoAddChildDetail(String sLabel String sData Handle hoChilds Handle hoChild Handle hoItem)
Add child items to a report item
- Variant
vItem
OnCreateRowItem(Integer iColumn Handle hoItem String sValue)
Use OnCreateRowItem to add additional child records. We don't need to do this every time the event is called, simply once per row
..so we wait until the passed column is the last one in the row (iColumn=piColumn_Count)
- Integer
hoChilds - Integer
hoChildRecord - Integer
hoChildItem
OnSetGrouping(tdRC_Ordering[] ByRef taRC_Ordering)
Programmatically specify the ordering
ComPopulate()
Populate as normal but then process the rows so we can amend the group row labels
OnProcessRow(Handle hoRow)
OnProcessGroupRow(Handle hoRow)
- Integer
hoRows - String
sCaption - Boolean
bExpanded - Integer
iCount
DoProcessAllRows()
- Integer
hoRows - Integer
hoRow - Integer
hoGroupRow - Integer
iRow - Integer
iCount - Variant
vRow - Boolean
bIsGroupRow
OnComBeforeDrawRow(Variant llRow Variant llItem Variant llMetrics)
Set the group icons (folder images)
- Integer
hoRow - Integer
hoGroupRow - Integer
hoMetrics - Boolean
bIsGroupRow - Boolean
bExpanded - Integer
iImage
OnActive_Track(String sID)