in reply to move extended selections within TK::HList or Tk::Listbox

Your code seems to work fine on my system. Have you tried shift-click (hold shift key while clicking left mouse) or ctrl-click (hold shift key while clicking left mouse) when making the end or second selection? From page 152 of "Mastering Perl/Tk", this is what "extended" allows.

Bob Niederman, http://bob-n.com

Update: Ooops ctrl-click s/b "(hold ctrl key while clicking left mouse)
  • Comment on Re: move extended selections within TK::HList or Tk::Listbox

Replies are listed 'Best First'.
Re: Re: move extended selections within TK::HList or Tk::Listbox
by tos (Deacon) on May 22, 2003 at 14:40 UTC
    perhaps i didn't make clear what i want.

    The problem is NOT to do a multiselection. This works. But after it's is made i want to grip precise that selection for dragging it inside the same HList/Listbox. That doesn't work like it does f.i. in ms-explorer.

    The ButtonPress-1-event on the already highlighted selection destroys the existing selection. That's the problem.

      From what I can see (a lot;)) that is not a feature of either module. If you want to add such a feature, you will have to handle everything yourself (listening for events, deciding if to hilight, what to hilight, what to move where... see Tk::bind, Tk::bindtags)


      MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
      I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
      ** The Third rule of perl club is a statement of fact: pod is sexy.