TK Help with Canvas

G

gibbering poster

Hi there... I've checked the FAQs, and am very confused about how to
accomplish what I want...

I want to have a canvas with a width and height of 50000, but I only
want the display width and height to be 1000 or so, and have scrollbars
to access the rest.

I'm not sure how to create the widgets to accomplish this... Along
with the scrollbars, I want to be able to zoom in and out of my canvas,
yet keep the global 50k by 50k size intact so that i can place, move and
center the display on obects referenced by the 50k,50k grid.

Does this make sense to anyone? Any help greatly appreciated. Thanks
 
S

Steve Lidie

gibbering poster said:
Hi there... I've checked the FAQs, and am very confused about how to
accomplish what I want...

I want to have a canvas with a width and height of 50000, but I only
want the display width and height to be 1000 or so, and have scrollbars
to access the rest.

I'm not sure how to create the widgets to accomplish this... Along
with the scrollbars, I want to be able to zoom in and out of my canvas,
yet keep the global 50k by 50k size intact so that i can place, move and
center the display on obects referenced by the 50k,50k grid.

Does this make sense to anyone? Any help greatly appreciated. Thanks

There are lots of Canvas widget experts, but not likely in this group.
Re-ask in comp.lang.perl.tk, please.
 
G

gnari

gibbering poster said:
Hi there... I've checked the FAQs, and am very confused about how to
accomplish what I want...
[snipped TK question]

seems to have stumbled into wrong newsgroup here.

gnari
 
A

Ala Qumsieh

gibbering poster said:
Hi there... I've checked the FAQs, and am very confused about how to
accomplish what I want...

As Steve mentioned in another post, there is a newsgroup specific for Tk. I
set the followups accordingly.
I want to have a canvas with a width and height of 50000, but I only
want the display width and height to be 1000 or so, and have scrollbars
to access the rest.

I'm not sure how to create the widgets to accomplish this... Along
with the scrollbars, I want to be able to zoom in and out of my canvas,
yet keep the global 50k by 50k size intact so that i can place, move and
center the display on obects referenced by the 50k,50k grid.

Does this make sense to anyone? Any help greatly appreciated. Thanks

Yes it does make sense. I wrote an article a while ago that discussed this
specific issue. You can find it at
http://www.perltk.org/articles/canvas_tutorial.html. If after reading it you
still have any questions, then please post your question(s) to
comp.lang.perl.tk, and I'm sure many people will be pleased to help you
further.

--Ala
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top