Are you using Tk::DragDrop or implementing your own drag/drop methods? Where is the relevant parts of your code? What have to tried in attempting to get this to work?

The following very simple test case seems to display the desired functionality to me:

#!/usr/bin/winperl use warnings; use strict; use Tk; use Tk::HList; my $mw = MainWindow->new(); my $hl = $mw->Scrolled('HList', -itemtype => 'text', )->pack(); foreach(qw(Foo Bar Baz Quux Wibble Zod Beezel Narf Fobble)) { $hl->add($_, -text => $_); } MainLoop;

When I run that, and click-and-drag the mouse, the list scrolls automatically. Therefore PodMaster's reply to your previous post was correct, in that this functionality appears to be built-in.

It's entirely possible that your drag-and-drop code is somehow overriding the default behavior, probably by rebinding the Motion event. However, it's impossible to say for sure, since you don't post any of your code.

If you would like further assistance, I recommend that you post a reduced test-case from your code that exhibits the problem you're trying to solve (see Ovid's excellent node Before You Post ...).

bbfu
Black flowers blossom
Fearless on my breath


In reply to Re: Perl/Tk: Drag 'n Drop in a HList: auto-scrolling by bbfu
in thread Perl/Tk: Drag 'n Drop in a HList: auto-scrolling by MSpitters

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.