Copyright © 2008-2023 MultiMedia Soft

TracksBoard.Scroll method

Previous pageReturn to chapter overviewNext page

Remarks

 

Scrolls the TracksBoard horizontally of a given amount.

 

After a call to this method the control will fire the TracksBoardDisplayRangeChange event.

 

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 object section.

 

 

Syntax

 

[Visual Basic]

control.TracksBoard.Scroll (

bHorizontal as enumBoolean,

nAmount as Long

) as enumErrorCodes


 

[C++]

short control.TracksBoard.Scroll (

short bHorizontal,

long nAmount

);


 

Parameter

Description

 

 

bHorizontal

Boolean flag that specifies if the scroll should be performed horizontally or vertically

Supported values are the following:

Mnemonic Value

Meaning

BOOL_FALSE

Vertical scroll

BOOL_TRUE

Horizontal scroll

nAmount

Amount to scroll, can represent a value in pixels or in percentage depending upon the value of the bHorizontal parameter.

Value

Meaning

Negative value

If the bHorizontal parameter is set to "BOOL_TRUE" scrolls left the TracksBoard of the given amount of pixels

If the bHorizontal parameter is set to "BOOL_FALSE" scrolls up the TracksBoard of the given amount of percentage

Positive value

If the bHorizontal parameter is set to "BOOL_TRUE" scrolls right the TracksBoard of the given amount of pixels

If the bHorizontal parameter is set to "BOOL_FALSE" scrolls down the TracksBoard of the given amount of percentage

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.ERR_NOERROR (0)

The method call was successful