Navigation:  Classes > bBrowser >

bBrowser:GetEditRect()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Return the area for an edit control within a cell.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:GetEditRect(

<iColumn>,

<nRowNo>,

<nRecNo>,

<srcArea>

) Æ lSuccess

Arguments

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

 

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

 

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

 

<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:GetEditRect() returns the rectangle for the cell of an edit control. This area is used when creating a standard edit control (see also bBrowser:EditCreate()) and defines the origin and the size of the control.

Samples

The following sample determines for the current cell the area of the edit control.

 

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 edit control

oBrowser:GetEditRect(oBrowser:CurrentColumn,;

                     oBrowser:CurrentRow,;

                     oBrowser:CurrentRecNo,;

                     @srcArea)

? srcArea.Left

? srcArea.Top

? srcArea.Right

? srcArea.Bottom

See Also

bBrowser:GetCaptionRect()

bBrowser:GetCellAreaRect()

bBrowser:GetCellFocusRect()

bBrowser:GetCellRect()

bBrowser:GetColumnRect()

bBrowser:GetFooterRect()

bBrowser:GetInfoRect()

bBrowser:GetRecordGroupItemRect()

bBrowser:GetRowRect()

bBrowser:GetSelectorRect()

bBrowser:GetValueRect()

 


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