Navigation:  Classes > bBrowser >

bBrowser:GetCellAreaRect()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Determines the area of a data cell range.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:GetCellAreaRect(

<oCellFrom>,

<oCellTo>,

<srcArea>

) Æ lSuccess

Arguments

<oCellFrom>The cell which defines the left upper corner of the range of cells. The cell refers to the list of the opened columns (also see bBrowser:ColumnOpenList).
Data Type:bCell

 

<oCellTo>The cell which defines the right lower corner of the range of cells. The cell refers to the list of the opened columns (also see bBrowser:ColumnOpenList).
Data Type:bCell

 

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

The structure must be specified by reference.

Data Type:_winRect

Return Value

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

Description

bBrowser:GetCellAreaRect() determines the rectangle required to display a range of data cells. The coordinates in the rectangle refer to the client area in the bBrowser.

Samples

The sample below determines the rectangle for the first 3 columns and the first 2 rows.

 

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 columns 1-3 and rows 1-2

oBrowser:GetCellAreaRect(bCell{1, 1,  1},;
                         bCell{3, 2, 2},;
                         @srcArea)
? srcArea.Left
? srcArea.Top
? srcArea.Right
? srcArea.Bottom

See Also

bBrowser:GetCaptionRect()

bBrowser:GetCellRect()

bBrowser:GetCellFocusRect()

bBrowser:GetCellFromPoint()

bBrowser:GetColumnFromPoint()

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_getcellarearect.htm