thanks Holger

what you suggested makes sense, but my question was wrong in the
first place. What I meant was when the user scroll down or up, how
do I still find the center. Not pan. With a bit more research, I
found the answer, ie., scrollTop property. It gives the top most
pixel of the current screen.

I am trying to write a process flow chart editor, something like 
Visio, but using .NET C#, web browser control, Adobe SVG viewer.

Once agains, many thanks for your response.
regards
Ben chong
QMatrix


--- In [email protected], Holger Will <[EMAIL PROTECTED]> 
wrote:
> hi Ben
> 
> > can anyone tell me how to get the coordinates
> > of the center of the screen no matter how you pan the svg
> > document, ie., if I pan to the bottom right corner I want
> > the coordinates at the center of the screen/window.
> 
> you would do something like :
> -determin the center of your initial screen.
> - get currentTranslate and currentScale
> -apply these transformations to the point
> 
> > I need to know the coordinates so when I, say, add an object,
> > it will appear on the screen for the user to see (and not
> > at an arbitrary X,Y which might be out of view.
> 
> couldnt you let the user click where he wants the object to be 
inserted ?
> 
> hth
> Holger





-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to