Navigation:  Classes > bBrowser >

bBrowser:GetCellFocusRect()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Determines the area for the focus rectangle of a data cell.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:GetCellFocusRect(

<iColumn>,

<nRowNo>,

<nRecNo>,

<srcArea>

) Æ lSuccess

Arguments

<iColumn>The column number of the data cell for which the area is to be determined. The column number refers to the list of the opened columns (see also bBrowser:ColumnOpenList).
Data Type:Integer

 

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

 

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

 

<srcArea>The rectangle structure in which the determined area for the data cell is returned.

The structure must be specified by reference.

Data Type:_winRect

Return Value

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

Description

bBrowser:GetCellFocusRect() determines the area required to display a focus rectangle around a data cell.

Samples

The following sample determines the area of the focus rectangle for the current cell.

 

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 area of the focus rectangle

oBrowser:GetCellFocusRect(oBrowser:CurrentColumn,;

                          oBrowser:CurrentRow,;

                          oBrowser:CurrentRecNo,;

                          @srcArea)

? srcArea.Left

? srcArea.Top

? srcArea.Right

? srcArea.Bottom

See Also

bBrowser:FocusView

bBrowser:GetCaptionRect()

bBrowser:GetCellAreaRect()

bBrowser:GetCellRect()

bBrowser:GetColumnRect()

bBrowser:GetEditRect()

bBrowser:GetFooterRect()

bBrowser:GetInfoRect()

bBrowser:GetRecordGroupItemRect()

bBrowser:GetRowRect()

bBrowser:GetSelectorRect()

bBrowser:GetValueRect()

 


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