Modern Windows style highlight marqee box?

Features wanted...
Post Reply
TsunamiZ
Posts: 275
Joined: 11 Jul 2005 07:36

Modern Windows style highlight marqee box?

Post by TsunamiZ »

How about add a modern Windows style highlight marqee box? It's easier to see selection area...

Image

admin
Site Admin
Posts: 66346
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Modern Windows style highlight marqee box?

Post by admin »

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.

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Modern Windows style highlight marqee box?

Post by zer0 »

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:

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.
More information is in this MSDN resource: http://msdn.microsoft.com/en-us/library ... S.85).aspx Any use? :?
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

admin
Site Admin
Posts: 66346
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Modern Windows style highlight marqee box?

Post by admin »

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:

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.
More information is in this MSDN resource: http://msdn.microsoft.com/en-us/library ... S.85).aspx Any use? :?
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
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Modern Windows style highlight marqee box?

Post by zer0 »

admin 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. :)
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" name :P) in Explorer (XP onwards, maybe earlier OS too) is governed via a tickbox in system's settings, so its implementation in other apps that deal with lists of files becomes a given ;)
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

carmenm

Re: Modern Windows style highlight marqee box?

Post by carmenm »

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: 66346
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Modern Windows style highlight marqee box?

Post by admin »

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.
Thanks, but he most probably uses the ListView, so that won't help me.

But anyway: I know how to do this, but it's quite some work, and it's not my top priority now.

Post Reply