[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: Questions about the Konqueror browser
From:       Peter Kelly <pmk () post ! com>
Date:       2002-02-17 23:41:38
[Download RAW message or body]

On Mon, 11 Feb 2002, Robert E. Boughner wrote:

> Mr. Kelly,
> 
> I have some questions about the Konqueror browser that I hope you can answer for
> me.  The reason that I am writing to you is that someone who uses Konqueror on a
> Linux machine is trying to get a "tooltip" type of utility called "overlib" to
> work in that browser.  It works partially but not completely because it is not
> getting the correct mouse coordinates that it needs to function.  I am not the
> developer of this utility but have been very active in getting it to work
> correctly on IE, NS4.x and NS6.x.  I was hoping that you could provide me with
> some more information that would help me in my understanding of Konqueror so
> that this utility could be extended to that browser.  The web address which
> explains this utility is  http://www.bosrup.com/web/overlib/
> 
> The main routine is the one which captures mouseMovements on the page.  It is
> 
> function mouseMove(e) {
>  if ( (ns4) || (ns6) ) {o3_x=e.pageX; o3_y=e.pageY;}
>  if (ie4) {o3_x=event.x; o3_y=event.y;}
>  if (ie5) {o3_x=event.x+o3_frame.document.body.scrollLeft;
> o3_y=event.y+o3_frame.document.body.scrollTop;}
> 
>  if (o3_allowmove == 1) {
>   placeLayer();
>  }
> }

This code looks correct... what browser is konqueror detecting as? The 
event object passed in contains both the x/y and clientX/clientY, so the 
IE4 version at least should work. scrollLeft and scrollTop I think are 
only supported in KDE3... which version are you running?

> 
> According to documentation on developer.kde.org, Konqueror implements the DOM
> CSS2 Event model but since I'm not a C++ programmer I'm having trouble
> understanding how you get to the different properties of the DOM::Event and
> DOM::MouseEvent classes.  The above routine is invoked with a statement such as
> 
> document.onmousemove = mouseMove
> 
> where e is the event object that is passed in by Netscape and event is the
> window.event object of IE.  My question is how is the event object information
> passed to a mouse handler in Konqueror?  It seems to me that will have to get a
> handle on MouseEvent.clientX/clientY for Konqueror but I'm not sure how to go
> about doing that.  I was wondering if you could provide me a quick discussion
> about how to go about doing that.
> 
> I apologize if you're not the person that this email should be going to and if
> you're not could you please direct me to the proper people.  I thank you for any
> help that you can provide me on this topic.
> 
> Robert E. Boughner
> 

-- 
Peter Kelly
pmk@post.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic