DataView.SetWindowPosition

Prototypes

void SetWindowPosition( double dLeft, double dTop <, double dWidth, double dHeight> )

Parameters

double dLeft
The position of the left edge of the data view window as a percentage of the width of IML Studio's main window. A value of 0 positions the left edge of the window at the left edge of IML Studio's window; a value of 100 positions the left edge of the window at the right edge of IML Studio's window.

double dTop
The position of the top edge of the data view window as a percentage of the height of IML Studio's main window. A value of 0 positions the top edge of the window at the top edge of IML Studio's window; a value of 100 positions the top edge of the window at the bottom edge of IML Studio's window.

double dWidth
The width of the data view window as a percentage of the width of IML Studio's main window. This parameter must be in the range [0, 100]. If you do not specify this parameter, the width of the data view window is not changed.

double dHeight
The height of the data view window as a percentage of the height of IML Studio's main window. This parameter must be in the range [0, 100]. If you do not specify this parameter, the height of the data view window is not changed.

Remarks

This method positions the data view window within IML Studio's main window.

If you position a plot behind another window (for example, behind the program window), you may want to use the method DataView.ActivateWindow to bring the plot window to the foreground.

Example
declare DataObject dobj;
dobj = DataObject.CreateFromFile( "baseball" );
declare BoxPlot box;
box = BoxPlot.Create( dobj, "NO_ATBAT", false );
box.SetWindowPosition( 0, 0, 50, 50 );
box.ActivateWindow();
declare ScatterPlot plot;
plot = ScatterPlot.Create( dobj, "NO_RUNS", "NO_ATBAT", false );
plot.SetWindowPosition( 50, 0, 50, 50 );
plot.ActivateWindow();
declare Histogram hist;
hist = Histogram.Create( dobj, "NO_RUNS", false );
hist.SetWindowPosition( 50, 50, 50, 50 );
hist.ActivateWindow();
See Also

DataView.ActivateWindow
DataView.ShowWindow