ObjSelectAll and other ObjSelect... Methods

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:15

Description

The following Page.ObjSelect... commands handle the selection of objects.

FUNCTION

SELECTS

Page.ObjSelectAll

All objects on the current layer

Page.ObjSelectArticle (lng1)

All frames of article, specified by the article in the database. Note: it does not select the current article or text.

Example: To select all frames of the current article, use Page.ObjSelectArticle (Page.GetCurArticleId,)

Page.ObjSelectAtCursor (bln1)

Object under cursor*

Page.ObjSelectSgm(idx)

Selects the specified polygon in the selected object.

Page.ObjSelectFirst

First object in selection (or in saved selection)

Page.ObjSelectId (lng1, bln1)

Page object, specified by its internal id*. Use Page.GetSelectedId to read the id.

Page.ObjSelectLast

Last object in selection (or in saved selection)

Page.ObjSelectLinked

All frames linked to the current text

Page.ObjSelectNext (bln1)

Next object in selection (or in saved selection)*

Page.ObjSelectPrev (bln1)

Previous object in selection (or in saved selection)*

Page.ObjUnSelect

Deselect all

* TRUE adds to the existing selection, FALSE selects only that frame.

Remarks

The functions always return 0, therefore, you cannot use the error code to find out if it was successful or not.

Context

Page designer