CPlotView:GetHandle


The GetHandle method returns the handle of the GUI window attached to this CPlotView object.

Syntax

handle = CPlotView:GetHandle()

where

    handle is the handle of the GUI window. If the handle is not valid, nil is returned.

  

Note that the handle is a number that the operating system has assigned to a specific window. If you close the plot window attached to this CPlotView, then the handle is no longer valid.

Example

The following script gets the handle of the plot window attached to this CPlotView object, P, and then saves it to the system Registry.

handle = P:GetHandle()

-- fetch the handle of the GUI window

Reg = CRegistry:new("Real-time-phot")

-- open the Registry section "Real-time-phot"

Reg:SetWnd( "PlotWindow", handle )

-- save the handle to the "PlotWindow" key

Related Topics

CPlotView, AttachHandle, Attach, CRegistry class