Thanks for your reply - but - I already know how to construct a scrolled Listbox with its callback function, etc. And I have a sophisticated system working, except for this detail.

I'd like to construct a widget in the form of a popup window that can be called as a dialog box containing a scrolled Listbox.

Chapter 14 of the Mastering book explains how to construct a widget. It rests on the Construct operation, followed by a Component call. This appears to be a macro generator, but it's hard to tell, since the Perl debugger refuses to follow the operation. Component seems to work fine for a Listbox, but I do not see how to use it to construct a Scrolled Listbox.

If you look at my example, lines 79-87 in principle should replace lines 89-94, but it will not compile. The example works very well without the Scrolled feature, and I've tried lots of variations on that plan with no success.

Comes down to poor documentation of Construct and Component. Someone obviously knows how to make great widgets. Why can't I?


In reply to Re^2: Widget with Scrolled Listbox by wbarrett
in thread Widget with Scrolled Listbox by wbarrett

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.