Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17



Posted on 1999-07-20
Medium Priority
Last Modified: 2010-04-16
how to select in the TlistView component from the list of items,some items by clicking with the mouse on the first item and then dragging it down to select the rest of the items.This operation is not available. Can I do something to enable this operation?
Question by:tal_malai
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Accepted Solution

Laminamia063099 earned 360 total points
ID: 1200576
Yes.  Set up an event handler for the TListItem object that would be "OnMouseDrag" (or OnClickDrag, I forget exactly what it's called).  Builder will bring up the code editor when you double click on the event in the object inspector.  In this function you will want to find out on what list item the drag started and on what list item it ended.  Then, select all the items that are found within the mouse drag beginning and end.

This should do what you need.  If you need more help with specifics, just say so and I'll give them :)


Author Comment

ID: 1200577
can you be more specific?,and there is no such thing as the events you mentioned.

Expert Comment

ID: 1200578
What events are default in the object inspector of the TListView component?

(I don't have my Builder on this computer at the moment, but I'll get it on so that I can be more specific today)


Author Comment

ID: 1200579
when you get the builder on the computer and you can give me a reliable answer then do so,otherwise thank you but you are not helping at all.
LVL 14

Expert Comment

ID: 1200580
tal_malai, try set MultiSelect property to "true".
This must works!

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question