Thanks.
I tried your code posted as an update, and it mostly does what I want, but the entry field still shows up when I click the button. I would want it to stay hidden all the time. I tried removing the whole BtnDown sub, removing just the $w->Subwidget('entry')->pack line, and adding a packForget right after it. The result is the same in all three cases: the entry field is hidden, but the listbox that pops up starts at the left edge of the screen and stretches all the way to the button. I tried looking in the BrowseEntry.pm to see what sets the width but most of it goes way over my head. Adding -listwidth   => 30 brings me back to where I started: the listbox is the correct width but it's at the edge of the screen.

In reply to Re^2: Tk BrowseEntry with only the arrow button visible? ( override Tk::BrowseEntry::SetBindings / sub Tk::JBrowseEntry::Popdown) by elef
in thread Tk BrowseEntry with only the arrow button visible? by elef

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.