BCGControlBar Library for .NET
ButtonFromPoint Method (CategoryItem)




Returns any ToolbarButton from the  CategoryItem which contains the specified point.
Returns any ToolbarButton from the  CategoryItem which contains the specified point.
Overload List
OverloadDescription
ButtonFromPoint(Point)Returns any ToolbarButton from the  CategoryItem which contains the specified point.  
ButtonFromPoint(Point,Boolean)If the boundaries of any visible Toolbar Button from the ToolBar contains a specified point, this Toolbar Button will be returned, otherwise, null value. (Inherited from BCGSoft.ControlBars.Toolbar)
Remarks

Returns NULL value, if no button from the Category item contains the specified point. 
Returns ToolBarLaunchButton if the launch button related to the CategoryItem contains this point.
Returns ToolbarButton from the CategoryItem if any button from it contains the specified point.

Called by FrameWork on mouse event to indicate a button which was clicked.

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

CategoryItem Class
CategoryItem Members
Base Implementation in ButtonFromPoint

Send Feedback