Listbox Focus Color

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Jerry Thomas
Macro Veteran
Posts: 267
Joined: Mon Sep 27, 2010 8:57 pm
Location: Seattle, WA

Listbox Focus Color

Post by Jerry Thomas » Wed Apr 22, 2015 3:26 pm

Is it possible to change the color of the ListBox focused item?
By default this is Blue, but if certain conditions... I want it to be Red.

I know we can change the BackGround color of the entire control and we can change the Text color, but I just want to change the 'focus bar'.

Possible?
Thanks,
Jerry

[email protected]

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Listbox Focus Color

Post by Marcus Tettmar » Wed Apr 22, 2015 6:06 pm

I don't believe it is no - as far as I am aware the colour of focused objects is dictated by Windows (it may be something you can change in your profile in the theme but cannot differ outside of those profile settings).
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Jerry Thomas
Macro Veteran
Posts: 267
Joined: Mon Sep 27, 2010 8:57 pm
Location: Seattle, WA

Re: Listbox Focus Color

Post by Jerry Thomas » Wed Apr 22, 2015 6:19 pm

This doesn't surprise me.
In Delphi you can draw a new rectangle over the selection so you are kind of masking what Windows has done.

Thanks!
Thanks,
Jerry

[email protected]

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts