Copyright © 2005-2023 MultiMedia Soft

TracksBoard.Create method

Previous pageReturn to chapter overviewNext page

Remarks

 

Creates a new instance of the TracksBoard object on the given parent window in order to display the user interface of the TracksBoard and links the given player that allows playback of the final mix.

 

 

IMPORTANT NOTE: Each instance of the component can create one single TracksBoard only, also when more than one player has been instanced through the InitSoundSystem method.

 

 

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]

Public Function Create (

nPlayerIndex as Int16,

hWndParent as IntPtr,

nLeft as Int32,

nTop as Int32,

nWidth as Int32,

nHeight as Int32,

nInitialDurationMs Int32,

nTracks as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes Create (

Int16 nPlayerIndex,

IntPtr hWndParent,

Int32 nLeft,

Int32 nTop,

Int32 nWidth,

Int32 nHeight,

Int32 nInitialDurationMs,

Int32 nTracks

);


 

[C++]

public: enumErrorCodes Create (

Int16 nPlayerIndex,

IntPtr hWndParent,

Int32 nLeft,

Int32 nTop,

Int32 nWidth,

Int32 nHeight,

Int32 nInitialDurationMs,

Int32 nTracks

);


 

Parameter

Description

 

 

nPlayerIndex

Number representing the zero-based index of the player linked to the TracksBoard for allowing playback of the final mix

hWndParent

Handle of the parent window, usually the container form.

nLeft

Left position of the window, expressed in client coordinates (pixels) of hWndParent

nTop

Top position of the window, expressed in client coordinates (pixels) of hWndParent

nWidth

Width of the window, expressed in pixels

nHeight

Height of the window, expressed in pixels

nInitialDurationMs

Initial duration of the empty tracksboard, expressed in milliseconds

nTracks

Initial number of tracks

 

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful