Re: mouse clicked Area from C# DOM



hi, i was successful in handling that event, i have use below code

mshtml.HTMLDocumentEvents2_Event DocEvents =
(mshtml.HTMLDocumentEvents2_Event)Explorer.Document;
DocEvents.onclick += new
mshtml.HTMLDocumentEvents2_onclickEventHandler(DocEvents_onclick);
and function which is implemented is
bool DocEvents_onclick(mshtml.IHTMLEventObj pEvtObj) and
pEvtObj.srcElement.parentElement gives me desired area which i want, but now
the issue is with the selection of above html element return using above line,
what i want to do with that area is select that make it text size bold
using execommand

"tasleem" wrote:

it will be a table, i mean immediate parent in DOM will be his Area.

"Igor Tandetnik" wrote:

tasleem <tasleem@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
hi, thanks for reply, area means html button of text will lie inside
elements like table,div etc i am saying area to that

What if I have a table inside a div inside a table? Which of them is
"whole area"?

i have tried but
problem is registering event handler for that, as onclick function of
html document does not take any arguments which supply position that
i use in below function,

window.event.clientX and clientY
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925



.