Skip to main content

TCustomdxBarControl.GetItemRect(TdxBarItemControl) Method

Returns the ‘full’ rectangle occupied by an item control on the current bar control.

Declaration

function GetItemRect(Item: TdxBarItemControl): TRect;

Parameters

Name Type
Item TdxBarItemControl

Returns

Type
TRect

Remarks

The GetItemRect function is called when processing drag-and-drop events. The ‘full’ rectangle includes an item control’s rectangle and the area surrounding it. The following image describes the meaning of ‘full’ rectangle:

The resulting rectangle is specified in the bar control’s coordinates. The Item parameter specifies the item control. When nil is passed as this parameter, the GetItemRect function returns an empty rectangle.

See Also