TracksBoard.RectangleGet method |
|
Remarks
Obtains the rectangle where a specific graphic element is positioned inside the TracksBoard.
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.RectangleGet ( nIdRectangle as enumTracksBoardRectangles, nIdFirst as Long, nIdSecond as Long, ByRef nLeft as Long, ByRef nTop as Long, ByRef nWidth as Long, ByRef nHeight as Long ) as enumErrorCodes |
[C++] short control.TracksBoard.RectangleGet ( short nIdRectangle, long nIdFirst, long nIdSecond, long *nLeft, long *nTop, long *nWidth, long *nHeight ); |
Parameter |
Description |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nIdRectangle |
Mnemonic Identifier of the graphic element Supported values are the following:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nIdFirst |
In case the nIdRectangle parameter should be set to TRACKSBOARD_RECT_SINGLE_TRACK this parameter defines the zero-based index of a specific track In case the nIdRectangle parameter should be set to TRACKSBOARD_RECT_SINGLE_ITEM or TRACKSBOARD_RECT_SINGLE_VOLUME_POINT this parameter defines the unique identification number of the item. In all other cases this parameter is ignored. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nIdSecond |
In case the nIdRectangle parameter should be set to TRACKSBOARD_RECT_SINGLE_VOLUME_POINT this parameter defines the zero-based index of the volume point belonging to the item defined into the nIdFirst parameter. In all other cases this parameter is ignored. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nLeft |
Reference that, after returning from the method call, will contain the left coordinate, expressed in pixels, of the requested rectangle respect to the client area of the Waveform Analyzer. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nTop |
Reference that, after returning from the method call, will contain the top coordinate, expressed in pixels, of the requested rectangle respect to the client area of the Waveform Analyzer. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nWidth |
Reference that, after returning from the method call, will contain the width, expressed in pixels, of the requested rectangle. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nHeight |
Reference that, after returning from the method call, will contain the height, expressed in pixels, of the requested rectangle |
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 |