MoveEventRelatedAveragePlot Method


Description

Moves a previously created event-related averaging window to a new screen position and changes its width and height.

Syntax

objDocument.MoveEventRelatedAveragePlot(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 (RTC) window to which the event-related averaging (AVG) window is linked has been created. The referred AVG 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 RTC window. The AVG window is closed when the linked RTC window is closed with the CloseTimeCoursePlot method..

Example

' VBScript
doc.
ShowTimeCourseOfVoxelEx 100, 180, 145, "TC window", False, 523, 0, 500, 181, True, False
doc.
ShowEventRelatedAverageEx "TC window", "CG_OBJECTS_SECS.avg", 0, 0, 500, 542

doc.MoveEventRelatedAveragePlot "TC window", 50, 50, 500, 542
doc.
CloseTimeCoursePlot "TC window"

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

doc.
ShowEventRelatedAverageEx("TC window", "CG_OBJECTS_SECS.avg", 0, 0, 500, 542);

doc.
MoveEventRelatedAveragePlot("TC window", 50, 50, 500, 542);
doc.
CloseTimeCoursePlot("TC window");

# PerlScript
$doc->ShowTimeCourseOfVoxelEx(100, 180, 145, "TC window", 0, 523, 0, 500, 181, 1, 0);
$doc->
ShowEventRelatedAverageEx("TC window", "CG_OBJECTS_SECS.avg", 0, 0, 500, 542);
$doc->MoveEventRelatedAveragePlot("TC window", 50, 50, 500, 542);
$doc->CloseTimeCoursePlot("TC window");