AddItemEx Method
Description
Adds an entire track or GridRecordItem to this GridRecord. (Track Control)
Syntax
Public Sub AddItemEx( _
ByVal [Item] As [GridRecordItem] _
)
Parameters
- Item: Reference to the GridRecordItem to add. To add a track to a record, simply pass in a TrackControlItem.
Remarks
AddItemEx is used to add entire GridRecordItem or TrackControlItem to a record.
The following applies to adding tracks to a record:
Tracks are what hold the blocks and keys. A track is a special item that is added to a regular GridRecord.
Dim TrackItem As TrackControlItem
Dim Record As GridRecord
Dim Block As TrackBlock
Set Record = TrackControl.Records.Add
Record.AddItem 1
Record.AddItem 1
Record.AddItem 1
Set TrackItem = TrackControl.CreateTrackItem
Record.AddItemEx TrackItem
Set Block = TrackItem.AddBlock(False, 15, 25)
The code above adds a track to the track control. It adds 3 normal items, then it adds a TrackControlItem. You must first create a track item before you can use it using the CreateTrackItem method. Once it is created, you can then add this new track item to the record using AddItemEx. This will add your track so you can then add blocks and keys.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.