Code Comments
Programming Forum and web based access to our favorite programming groups.Hello, to add to my other post asking about capturing / binding the mouse scroll wheel on a global level, I have another related question. This one has been more of a problem, one I have not yet been able to work around. In my little project are a few photos. These are JPEG images on a same sized canvas placed via Photo and createImage. The photos appear just fine, but if the cursor is over one of these photos, moving the scroll wheel will cause the photo to scroll right off of its canvas! Also, if I press the TAB key until one of the photos is selected, using the arrow keys will also cause the photo to scroll off of its canvas! How can I disable this behavior? I want the photos to stay locked in place. Thank you. Pepper
Post Follow-up to this message<woodenbicycle@hotmail.com> wrote in message news:1115654415.674303.286250@f14g2000cwb.googlegroups.com... > Hello, to add to my other post asking about capturing / binding the > mouse scroll wheel on a global level, I have another related question. > This one has been more of a problem, one I have not yet been able to > work around. > > In my little project are a few photos. These are JPEG images on a same > sized canvas placed via Photo and createImage. The photos appear just > fine, but if the cursor is over one of these photos, moving the scroll > wheel will cause the photo to scroll right off of its canvas! Also, if > I press the TAB key until one of the photos is selected, using the > arrow keys will also cause the photo to scroll off of its canvas! > > How can I disable this behavior? I want the photos to stay locked in > place. Try setting -scrollregion. (documented in Tk::Canvas) Jack
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.