Purpose
Determines the area of an item inside the control.
Class
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 . |
#SpinnerDown |
The arrow button . |
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
lSuccess | A logical value that indicates whether the area for the item was determined. |
TRUE | The area was determined. |
FALSE | The 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 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
Page url: http://www.YOURSERVER.com/index.html?bspinedit_getitemrect.htm