Navigation:  Classes > bSpinEdit >

bSpinEdit:GetItemRect()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Determines the area of an item inside the control.

Class

bSpinEdit

Type

Method

Syntax

<oSpinEdit>:GetItemRect(<symItem>, <srcArea>) Æ lSuccess

Arguments

<symItem>The item for which the area is to be determined. The following values are supported:

 

Value

Description

#SpinnerUp

The arrow button SpinnerUp.

#SpinnerDown

The arrow button SpinnerDown.

 

Data Type:        Symbol

 

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

The structure must be passed by reference.

Data Type:_winRect

Return Value

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

Description

bSpinEdit:GetItemRect() determines the area of an item inside the control, in which it is drawn.

Samples

The following sample determines the area of the arrow button SpinnerUp for a bSpinEdit Control.

 

LOCAL oSpinEdit    AS bSpinEdit

LOCAL srcArea      IS _winRECT

 

// Create bSpinEdit Control

oSpinEdit := bSpinEdit{oOwner,;

                       1000,;

                       Point{0, 0},;

                       Dimension{80, 18}}

oSpinEdit:Show()

 

// Determine the area of the arrow button

oSpinEdit:GetItemRect(#SpinnerUp, @srcArea)

 

? srcArea.Left

? srcArea.Top

? srcArea.Right

? srcArea.Bottom

See Also

bSpinEdit:DoDrawItem()

 


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