BCGControlBar Library for .NET
ButtonFromPoint(Point,Boolean) Method




A point in client coordinates from the ToolBar to retrieve.
Specifies if the nearest ToolBar button should be returned if the button which boundaries contains a specified point was not found.
If the boundaries of any visible Toolbar Button from the ToolBar contains a specified point, this Toolbar Button will be returned, otherwise, null value.
Syntax
'Declaration
 
Public Overloads Function ButtonFromPoint( _
   ByVal pt As Point, _
   ByVal findNearestButton As Boolean _
) As ToolbarButton
'Usage
 
Dim instance As Toolbar
Dim pt As Point
Dim findNearestButton As Boolean
Dim value As ToolbarButton
 
value = instance.ButtonFromPoint(pt, findNearestButton)
public ToolbarButton ButtonFromPoint( 
   Point pt,
   bool findNearestButton
)
public: ToolbarButton* ButtonFromPoint( 
   Point pt,
   bool findNearestButton
) 
public:
ToolbarButton^ ButtonFromPoint( 
   Point pt,
   bool findNearestButton
) 

Parameters

pt
A point in client coordinates from the ToolBar to retrieve.
findNearestButton
Specifies if the nearest ToolBar button should be returned if the button which boundaries contains a specified point was not found.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Toolbar Class
Toolbar Members
Overload List

Send Feedback