Navigation:  Classes > bBrowser >

bBrowser:GetValueRect()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Return the area for the column value within a cell.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:GetValueRect(

<iColumn>,

<iRow>,

<iRecNo>,

<srcArea>

) Æ lSuccess

Arguments

<iColumn>The column number of the cell for which the area is to be determined.
Data type:Integer

 

<iRow>The row number of the cell for which the area is to be determined.
Data type:Integer

 

<iRecNo>The record number of the cell for which the area is to be determined.
Data type:Integer

 

<srcArea>The rectangle structure in which 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 was determined.
TRUEThe area was determined.
FALSEThe area could not be determined.
Data type:Logic

Description

bBrowser:GetValueRect() determines the area required to display the value of a data cell.

Samples

The following sample determines the data area of 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 data area of the current cell

oBrowser:GetValueRect(oBrowser:CurrentColumn,;

                      oBrowser:CurrentRow,;

                      oBrowser:CurrentRecNo,;

                      @srcArea)

? srcArea.Left

? srcArea.Top

? srcArea.Right

? srcArea.Bottom

See Also

bBrowser:GetCaptionRect()

bBrowser:GetCellFocusRect()

bBrowser:GetCellRect()

bBrowser:GetColumnRect()

bBrowser:GetEditRect()

bBrowser:GetFooterRect()

bBrowser:GetInfoRect()

bBrowser:GetRowRect()

bBrowser:GetSelectorRect()

 


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