page_active_layer_index

 

Contents

Description

Get the active layer number from the given page, if page is not the active window, then return -1

Syntax

int page_active_layer_index( Page & pg )

Parameters

pg
[input] the page to get the layer number

Return

0-offset layer number if given page is the active window, otherwise return -1

Examples

EX1

//For this example to run, make sure a graph page named "Graph1" exist in the project.
void Run_page_active_layer_index()
{
    GraphPage gp("Graph1");
    int nIndex = page_active_layer_index(gp);
}

Remark

See Also

header to Include

origin.h

Reference