The Artima Developer Community
Sponsored Link

Python Answers Forum
How to correct canvas coordinates when scroll bars are moved?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Phil Cooke

Posts: 1
Nickname: philc
Registered: Oct, 2004

How to correct canvas coordinates when scroll bars are moved? Posted: Oct 23, 2004 1:17 PM
Reply to this message Reply
Advertisement
Hi Folks,

I'm trying to click on a canvas to draw a line. The canvas has scroll
bars. All is well until I move the scrollbars. This naturally because
the relationship between my screen click and canvas event.x, event.y
has changed.

I need something that will add the proportional amount the scroll bar
has moved to the mouse click position. I see the terms canvasx and
canvasy but they appear to be used for converting screen position to
canvas position.

A pointer in the right direction would be appreciated.

Thanks

PhilC

Topic: Gnuplot Error Message Previous Topic   Next Topic Topic: Reading from a text file

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use