KuntalBhusan has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks...
I was developing a Perl Tk based application which displays some nodes connected by edges (using Tk::GraphItems)
in a standard Tk::Canvas.Later I tried to put the same in a Tk::AbstractCanvas so as to get the benefits of the automatic zooming and centering of the layout. My problem is that when the number of nodes are a bit high the canvas adjusts the node sized in some weird was so that some nodes (rectangles) become small and some remain large (although in normal Canvas this problem does not occur). Is it somehow possible to restrict the minimum size of a node (Tk::GraphItem::TextBox) in the AbstractCanvas.
Another question/request in the same context....How can I make a small view of my whole Graph Layout window which I can use as a control widget to navigate the main layout (This widget may be placed at some corner of the same frame or may be independent).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Tk::AbstractCanvas problem
by zentara (Archbishop) on Oct 09, 2012 at 12:00 UTC | |
Re: Tk::AbstractCanvas problem
by Anonymous Monk on Oct 09, 2012 at 12:00 UTC | |
by KuntalBhusan (Acolyte) on Oct 10, 2012 at 05:27 UTC |
Back to
Seekers of Perl Wisdom