SysListView32 as a mouse selection rectangle

Can I make a mouse selection rectangle in a list view, as in SysListView32 ? enter image description here

Is there a way to work with SysListView32 and use it in Delphi?

Thanks!

+6
source share
2 answers

You need to set the LVS_EX_DOUBLEBUFFER list LVS_EX_DOUBLEBUFFER style (applicable only to comctl32.dll version 6.0 (XP) and later)

[...] This advanced style also allows you to select the alpha-mixed selection of the systems where it is supported.


 uses commctrl; .. ListView_SetExtendedListViewStyle(ListView1.Handle, LVS_EX_DOUBLEBUFFER); 


It also works with the TShellListView component included as a demo. See this answer for how to find and install shell controls.

(PS: Remember to set Multiselect to true)

+10
source

Currently, the site is at the bottom, but there is a Mustangpeak- free Delphi ListView component that has this feature and much more that are in the modern Windows list view.

+2
source

Source: https://habr.com/ru/post/895208/


All Articles