Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

componentFromPoint method

Returns the component located at the specified coordinates via certain events.

Syntax


 retVal = object.componentFromPoint(x, y);

Parameters

x [in]

Type: long

 Specifies the client window coordinate of x.

y [in]

Type: long

 Specifies the client window coordinate of y.

Standards information

There are no standards that apply here.

Remarks

The IHTMLElement2::componentFromPoint method, available as of Microsoft Internet Explorer 5, is applicable to any object that can be given scroll bars through Cascading Style Sheets (CSS).

The IHTMLElement2::componentFromPoint method might not return the same object consistently when it is used with the HTMLFrameSiteEvents::onmouseover event. Because a user's mouse speed and entry point can vary, different components of an element can fire the HTMLFrameSiteEvents::onmouseover event. For example, when a user moves the cursor over a textArea object with scroll bars, the event might fire when the mouse enters the component border, the scroll bars, or the client region. After the event fires, the expected element might not be returned, unless the scroll bars were the point of entry for the mouse. In this case, the HTMLFrameSiteEvents::onmousemove event can be used to provide more consistent results.

See also

Reference
IHTMLElement2::doScroll
HTMLFrameSiteEvents::onscroll

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.