Copyright © 2005-2023 MultiMedia Soft

OnTracksBoardItemMoving event

Previous pageReturn to chapter overviewNext page

Remarks

 

Occurs when a sound item inside the TracksBoard is being moved through the mouse or through code.

 

This event replaces the usage of the CallbackTracksboardItemMoved delegate and is only intended for usage with applications developed using Visual Basic 6 (which results unreliable when dealing with delegates and callbacks) and, in order to be enabled, requires a call to the COMEventEnable method with the nEventType parameter set to EVENT_TYPE_TRACKSB_ITEM_MOVED.

 

For further details about callback delegates see the How to synchronize the container application with the API tutorial.

For details about the use of the TracksBoard refer to the How to use the TracksBoard to visually compose songs tutorial.

For further details about methods of the TracksBoard refer to the TracksBoard class section.

 

 

Syntax

 

[Visual Basic]

EditorApi_OnTracksBoardItemMoving (

ByVal nUniqueID as Integer,

ByVal bMovedByCode as Boolean

)

 

where "EditorApi" is declared in Visual Basic 6 code as:

 

Dim WithEvents EditorApi As AudioSoundEditorApi.AudioSoundEditorApiObj


 

 

Parameter

Description

 

 

nUniqueID

Unique identification number assigned to the sound item.

Unique identification number assigned to the sound item after being generated by one of the following methods:

TracksBoard.ItemClone when an existing item has been cloned

bMovedByCode

Boolean value that specifies if the custom vertical line was moved through the TracksBoard.ItemOffsetSet method or through the mouse.

Supported values are the following:

Value

Meaning

false

The sound item was moved through the mouse

true

The sound item was moved through code by using one between the TracksBoard.ItemOffsetSet, TracksBoard.ItemTrackSet and TracksBoard.ItemSplit methods