Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomNavBar.GetGroupAtItemsPos(TPoint) Method

Returns the group whose client area is located under the specified point.

#Declaration

Delphi
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