Navigation:  Classes > bBrowser >

bBrowser:GetRecordGroupItemRect()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Determines the area of a record group item.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:GetRecordGroupItemRect(

<oRecordGroupItem>,

<srcArea>

) Æ lSuccess

Arguments

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

 

<srcArea>The rectangle structure in that the determined area for the record group item is returned.

The structure must be specified by reference.

Data Type:_winRect

Return Value

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

Description

bBrowser:GetRecordGroupItemRect() determines the area required to display a record group item.

Samples

The following sample determines the area of the record group item for the current record.

 

LOCAL odbsCUSTOMER     AS DBServer

LOCAL oBrowser         AS bBrowser

LOCAL oRecordGroupItem AS bRecordGroupItem

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 record group item for the current record

oRecordGroupItem := oBrowser:RecordGroup:ItemList:ItemFomRecNo(oBrowser:CurrentRecNo,;

                                                               BRGILIFRO_SUBSEARCH)

 

// Determine the area of the record group item

oBrowser:GetRecordGroupItemRect(oRecordGroupItem,;

                                @srcArea)

? srcArea.Left

? srcArea.Top

? srcArea.Right

? srcArea.Bottom

See Also

bBrowser:GetCaptionRect()

bBrowser:GetCellAreaRect()

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