Navigation:  Classes > bBrowser >

bBrowser:GetSelectorRect()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Determines the area of a selector cell.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:GetSelectorRect(

<nRowNo>,

<nRecNo> | <oRecordGroupItem>,

<srcArea>

) Æ lSuccess

Arguments

<nRowNo>The row number of the selector cell for that the area is to be determined.
Data Type:Integer | Float

 

<nRecNo>The record number of the selector cell for that the area is to be determined.
Data Type:Integer | Float

 

<oRecordGroupInfo>The record group item of the selector cell for that the area is to be determined.
Data Type:bRecordGroupInfo

 

<srcArea>The rectangle structure in that the determined area is returned.

The structure must be specified by reference.

Data Type:_winRect

Return Value

lSuccessA logical value that indicates whether the area for the selector cell was determined.
TRUEThe area was determined.
FALSEThe area could not be determined.
Data Type:Logic

Description

bBrowser:GetSelectorRect() determined the selector cell area in which it is drawn.

Samples

The following sample determines the selector area of the current row.

 

LOCAL odbsCUSTOMER AS DBServer

LOCAL oBrowser     AS bBrowser

LOCAL srcArea      IS _winRECT

 

// Create browser and show it

odbsCUSTOMER := DBServer{"CUSTOMER"}

oBrowser := bBrowser{oOwner,;

                     1000,;

                     Point{0, 0},;

                     Dimension{300, 250}}

oBrowser:Use(odbsCUSTOMER)

oBrowser:Show()

 

// Determine the selector area of the current row

oBrowser:GetSelectorRect(oBrowser:CurrentRow,;

                         oBrowser:CurrentRecNo,;

                         @srcArea)

? srcArea.Left

? srcArea.Top

? srcArea.Right

? srcArea.Bottom

See Also

bBrowser:EnableSelector()

bBrowser:GetCaptionRect()

bBrowser:GetCellAreaRect()

bBrowser:GetCellFocusRect()

bBrowser:GetCellRect()

bBrowser:GetColumnRect()

bBrowser:GetEditRect()

bBrowser:GetFooterRect()

bBrowser:GetInfoRect()

bBrowser:GetRecordGroupItemRect()

bBrowser:GetRowRect()

bBrowser:GetValueRect()

bBrowser:IsSelectorEnabled()

 


Page url: http://www.YOURSERVER.com/index.html?bbrowser_getselectorrect.htm