TControl.GetContextMenuTargetBounds

Returns the bounds the target of the context menu

Source

UserInterface.Control.pas (190)

Description

When the context menu is not invoked by a device that provides coordinates for the context menu, the menu needs to be placed relative to its target on screen. This function should return a (possibly empty) rectangle for that target. Depending on the available space on screen the context menu can be placed above, below or next to the target rectangle.