// Filename:    pClamp.ogs
// Creation:    by CPY 11/8/2006
// Purpose:     pCLAMP graph manipulation LT scripts 
////////////////////////////////////////////////////////
// Modification log
//
// CPY 11/19/06 RECT_CHANGING_SCALE_SHOULD_UPDATE_LINE_POS

////////////////////////////////////////////////////////
// Line = vertical line
// Show = text box to show X value

// Add Values button 
[Add]
	layer -o 1 line {
		x = line.x;
		gxy2w bn:= "PickedValues" x:=x n1:=1 xname:="%(1X,@LA)" xu:="%(1X,@LU)";
	};
[MoveLineToCenter]
	lay -o 1 line {
		line.X = (x1+x2)/2;
	}
	run.section(,MoveLine);
	
[MoveLine]
	lay -o 1 line {
		show.text$="x=$(line.x)";
		show.X = line.X;
	}
	run.section(,MoveShow);
	
[MoveShow]
	lay -o 1 show {
		add.left = show.left - add.width*1.5;
		add.top = show.top;
	}
	
[OnNewPlot]
	layer -o 1 line {
		show.Y = line.Y;	
	}
	run.section(,MoveLine);
	
	
