TdxCustomNavBar.GetGroupAtItemsPos(TPoint) Method
Returns the group whose client area is located under the specified point.
Declaration
function GetGroupAtItemsPos(const pt: TPoint): TdxNavBarGroup;
Parameters
Name | Type |
---|---|
pt | TPoint |
Returns
Type |
---|
TdxNavBarGroup |
Remarks
Cal this function to determine which group has its client area located under the specified point. If the pt parameter specifies a point over a group’s client area, the corresponding group is returned. Otherwise, the GetGroupAtItemsPos function returns nil. Thus you can compare the function’s return value to nil to determine whether the specified point is over a group’s client area.
Note
the point must be specified in the control’s client coordinates (i.e. relative to the top-left corner of the NavBar control).
The GetGroupAtItemsPos function can be used, for instance, to invoke different context menus when different groups’ client areas are clicked.
See Also