MoveTimeCoursePlot Method


Description

Moves a previously created time course window to a new screen position and changes its width and height.

Syntax

objDocument.MoveTimeCoursePlot(strTCWindowName, intXPos, intYPos, intWidth, intHeight)

Remarks

Valid only if objDocument is of type VMR. The window name (strTCWindowName) refers to the name specified when the ROI Time Course window has been created using the ShowTimeCourseOfVoxel or ShowTimeCourseOfVoxelEx method. The referred window is moved to a new position and gets width intWidth and height intHeight. The position is specified with respect to the left corner (intXPos = 0, intYPos = 0) of the corresponding VMR window.

Example

' VBScript
doc.
ShowTimeCourseOfVoxelEx 100, 180, 145, "TC window", False, 523, 0, 500, 181, True, False
doc.
MoveTimeCoursePlot "TC window", 523, 181, 500, 181
doc.
CloseTimeCoursePlot "TC window"

// JScript
doc.ShowTimeCourseOfVoxelEx(100, 180, 145, "TC window", false, 523, 0, 500, 181, true, false);
doc.
MoveTimeCoursePlot("TC window", 523, 181, 500, 181);
doc.
CloseTimeCoursePlot("TC window");

# PerlScript
$doc->ShowTimeCourseOfVoxelEx(100, 180, 145, "TC window", 0, 523, 0, 500, 181, 1, 0);
$doc->MoveTimeCoursePlot("TC window", 523, 181, 500, 181);
$doc->CloseTimeCoursePlot("TC window");