Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Lock canvas/photo into place?
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


Report this thread to moderator Post Follow-up to this message
Old Post
woodenbicycle@hotmail.com
05-09-05 08:58 PM


Re: Lock canvas/photo into place?
<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



Report this thread to moderator Post Follow-up to this message
Old Post
Jack D
05-10-05 01:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PerlTk archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:33 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.