
Modern Windows style highlight marqee box?
-
TsunamiZ
- Posts: 275
- Joined: 11 Jul 2005 07:36
Modern Windows style highlight marqee box?
How about add a modern Windows style highlight marqee box? It's easier to see selection area...


-
admin
- Site Admin
- Posts: 66347
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Modern Windows style highlight marqee box?
This is actually something I'd really like to add but I can't seem to find any documentation about it. If any of you happens to know any API that does this kind of drawing let me know.
FAQ | XY News RSS | XY X
-
zer0
- Posts: 2676
- Joined: 19 Jan 2009 20:11
Re: Modern Windows style highlight marqee box?
Having done some digging, I have discovered that ListView API has 'Extended List-View Styles'. One of those styles is LVS_EX_DOUBLEBUFFER, for which the description reads: More information is in this MSDN resource: http://msdn.microsoft.com/en-us/library ... S.85).aspx Any use? 
Code: Select all
Version 6.00. Paints via double-buffering, which reduces flicker. This extended style also enables alpha-blended marquee selection on systems where it is supported.Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build
Windows 7/10
Always using the latest stable two-decimal build
-
admin
- Site Admin
- Posts: 66347
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Modern Windows style highlight marqee box?
Thanks, this looks like it's a thing native and restricted to the ListView. Now I don't use that ListView (everything in XY in owner-drawn), so I will have to make the thing myself. One day... and then you'll also be able to configure the color of it.zer0 wrote:Having done some digging, I have discovered that ListView API has 'Extended List-View Styles'. One of those styles is LVS_EX_DOUBLEBUFFER, for which the description reads:More information is in this MSDN resource: http://msdn.microsoft.com/en-us/library ... S.85).aspx Any use?Code: Select all
Version 6.00. Paints via double-buffering, which reduces flicker. This extended style also enables alpha-blended marquee selection on systems where it is supported.
FAQ | XY News RSS | XY X
-
zer0
- Posts: 2676
- Joined: 19 Jan 2009 20:11
Re: Modern Windows style highlight marqee box?
Yes, it does appear to be OS-native, but should that be a deterrent? It being native sounds like even more of a reason to use it. Presence of 'translucent selection rectangle' (its "proper" nameadmin wrote:Thanks, this looks like it's a thing native and restricted to the ListView. Now I don't use that ListView (everything in XY in owner-drawn), so I will have to make the thing myself. One day... and then you'll also be able to configure the color of it.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build
Windows 7/10
Always using the latest stable two-decimal build
-
carmenm
Re: Modern Windows style highlight marqee box?
Elplaylist is a plugin for foobar2000 that does the native selection feature of windows. Maybe you can ask how he does that. It s the user ssenna on the foobar2000 forum.
-
admin
- Site Admin
- Posts: 66347
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Modern Windows style highlight marqee box?
Thanks, but he most probably uses the ListView, so that won't help me.carmenm wrote:Elplaylist is a plugin for foobar2000 that does the native selection feature of windows. Maybe you can ask how he does that. It s the user ssenna on the foobar2000 forum.
But anyway: I know how to do this, but it's quite some work, and it's not my top priority now.
FAQ | XY News RSS | XY X
XYplorer Beta Club