CListCtrl - Multiple selection from anywhere within the list
-
Hi, I have a CListCtrl set to LVS_EX_FULLROWSELECT style. Using the mouse to create a multiple selection in a list control only seems to work when you select from the empty space in the first column. Is there an easy way to allow multiple selection from anywhere inside the list control?
-
Hi, I have a CListCtrl set to LVS_EX_FULLROWSELECT style. Using the mouse to create a multiple selection in a list control only seems to work when you select from the empty space in the first column. Is there an easy way to allow multiple selection from anywhere inside the list control?
AORD wrote:
Using the mouse to create a multiple selection in a list control only seems to work when you select from the empty space in the first column.
It seems you are using Report view, but normally multiple(or single) selection is possible on any item except the empty space. Please explain?
-
AORD wrote:
Using the mouse to create a multiple selection in a list control only seems to work when you select from the empty space in the first column.
It seems you are using Report view, but normally multiple(or single) selection is possible on any item except the empty space. Please explain?
Yes you are correct, i am using report view (sorry I should have mentioned :-O ). I have checked with examples at codeproject. e.g http://www.codeproject.com/KB/combobox/listctrldemo.aspx[^] click on the details tab for report view, try multiple selecting using the mouse from the Value or Time columns, you can't :(( :(( :(( :(( Any ClistCtrl using report only allows multiple selection from the left hand column :( . Single selection works fine. There must be an easy way allow a mouse drag selection from anywhere in the other populated columns?
___________________________
-
Yes you are correct, i am using report view (sorry I should have mentioned :-O ). I have checked with examples at codeproject. e.g http://www.codeproject.com/KB/combobox/listctrldemo.aspx[^] click on the details tab for report view, try multiple selecting using the mouse from the Value or Time columns, you can't :(( :(( :(( :(( Any ClistCtrl using report only allows multiple selection from the left hand column :( . Single selection works fine. There must be an easy way allow a mouse drag selection from anywhere in the other populated columns?
___________________________
I just run the demoproject with not even building it, it runs fine in my system, I can multiselect clicking on any item in any column, only the empty space next to time column is not possible.
AORD wrote:
There must be an easy way allow a mouse drag selection from anywhere in the other populated columns?
-
I just run the demoproject with not even building it, it runs fine in my system, I can multiselect clicking on any item in any column, only the empty space next to time column is not possible.
AORD wrote:
There must be an easy way allow a mouse drag selection from anywhere in the other populated columns?
Running the DragTest.exe (not building) I can only multi select with the mouse on the blank areas, this includes the blank area in the word column, BUT not the blank area in the index column. If you can and I can't multi select with the mouse on all of the populated columns it must be the windows file that contains the ClistCtrl? What version of windows are you running? I'm using XP.
___________________________ Here come the machines!
-
Running the DragTest.exe (not building) I can only multi select with the mouse on the blank areas, this includes the blank area in the word column, BUT not the blank area in the index column. If you can and I can't multi select with the mouse on all of the populated columns it must be the windows file that contains the ClistCtrl? What version of windows are you running? I'm using XP.
___________________________ Here come the machines!
I tested in vista, now in XP also, i can select at both the columns but not on the blank area right after index column and below the populated items. check on others machines I never faced this issue.
-
I tested in vista, now in XP also, i can select at both the columns but not on the blank area right after index column and below the populated items. check on others machines I never faced this issue.
Running the DragTest.exe on my XP work tablet the same problem occurs. I'm not sure we are talking about the same thing. :( I'm only multiple selecting using the mouse left button. I don't care about dragging at all, I just want to create a blue highlighted selection of rows. With the DragTest.exe the Index colum only is dragable I cannot create a multiple selection of rows unless i do the following steps: a) left click and hold the mouse button on the first columns blank area or anywhere after the last row or column. b) then I move the mouse to highlight the rows I want. This creates a rectangle (of dashed lines)that covers the first highlighted row from the start position of the mouse to the final position of the mouse. c) I release the mouse then the dashed rectangle disappears and a whole lot of rows remain highlighted in blue. The problem is when I have a big list say 20,000 rows and 30 columns the user can't always use the mouse to select a whole lot of rows.
___________________________ Here come the machines!