Learned Brother Ken,

Thank you so much for the insight. I code poorly, largely because I borrow code from here and there and crowbar some functionality more by chance than intelligent design. Your teachings are helpful and will probably completely alter my code for the better.

The rather bizarre looking $canvas object was from a progressive overloading of an initially simple object that accumulated more and more functionality. I am, I am ashamed to say, the author of GUIDeFATE; GUIDeFATE results in the production of a GUI, returning a single object that can be used to query/manipulate all the widgets, as well as being able to manipulate the canvas itself. You will immediately get the impression that my failings have already permeated widely in the code affecting multiple sub-modules as I struggled to get a common method for managing multiple different back-end toolkits.

My goal had been to be able to generate a scrolling pane of a predetermined size, placed in a specific location in the window. (hence the need for "place"). This was then to be populated by Tk::Checkbuttons or their equivalent in other toolkits...but if I use relative positioning to place these widgets, they leak out of the Pane widget, rather than remain contained somewhere in the scrollspace of the pane (perhaps unsurprisingly). The vast majority of the examples I have seen on the interweb use ->pack() to produce a list of checkbuttons

But I am grateful for your wisdom. I know I have to do a major rewrite but the fear is great

saif


In reply to Re^2: TK Placing Widgets in a Scrolling Pane by saiftynet
in thread TK Placing Widgets in a Scrolling Pane by saiftynet

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.