CPlotView:SetWnd
The SetWnd method attaches the handle of a plot window to this CPlotView object. The handle must have been obtained using the GetWnd method and can be nil. You also can load the handle from the system registry using the CRegistry:GetWnd method. Use this technique with CRegistry:SetWnd for saving and restoring the handle of a plot window between scripts.
success = CPlotView:SetWnd( handle ) |
handle is the handle of a plot window displayed on the Mira desktop.
On success, returns true; on failure it returns false.
The window handle applies only to a specific Plot window displayed on the Mira desktop. If you close a plot window and create a new plot window, the new window will have a different handle value. Use this method when you want to fetch the handle of an existing plot window saved by a previous script during which time the plot window remained open.