I found a way to work WAY around it... there should be a better way, but after searching around, I couldn't find a simple solution. So I cheated by creating a new BrowseEntry and by using a Frame to keep it in the same place, the 'destroy' in there helps with memory management (so you're not creating hundreds of overlapping BrowseEntry's. Here's the code:
use strict; use Tk; use Tk::BrowseEntry; my $mw = MainWindow->new; # Mainwindow: sizex/y, positionx/y $mw->geometry("200x200+100+120"); my $shortlist = [qw(a b c d)]; my $longlist = [qw(a b c d e f g h i j k l m n o p r s t u w)]; &create_dropdown($mw); MainLoop; sub create_dropdown { my $mother = shift; # Create dropdown and another element which shows my selection my $dropdown_value; my $dropdown; my $frame = $mother->Frame->pack; $dropdown = dropDown($dropdown,$frame,\$dropdown_value,$longlist); $mother->Button( -text => "Short List", -command => sub{$dropdown = dropDown($dropdown,$frame,\$dropdown_value,$sh +ortlist)})->pack; $mother->Button( -text => "Long List", -command => sub{$dropdown = dropDown($dropdown,$frame,\$dropdown_value,$lo +nglist)})->pack; return; } sub dropDown{ my ($oldDropdown, $frame,$dropdown_value,$options) = @_; $oldDropdown->destroy if $oldDropdown; my $dropdown = $frame->BrowseEntry( -label => "Label", -variable => $dropdown_value, -autolimitheight => 1, -choices => $options ); $dropdown->grid(-row=>1,-column=>1); $dropdown; }

In reply to Re: BrowseEntry scrollbar not updating by TheForeigner
in thread BrowseEntry scrollbar not updating by smaclach

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.