This was posted by Peter Below in the Borland newsgroups way back on Fri, 15 Jun 2001:
[quote]
The menu colors are a system setting which the user can specify in the display properties applet. You should not
mess with that. One can do so when the app is activated and restore the old setting when it is deactivated or
closed, but that is also not very satisfactory since the change still hits all other running apps as well and in the case
of changes to the color scheme it also may take a noticable delay to take effect.
If you want to play with it: drop a TApplicationEvents component on the form, connect the OnActivate and
OnDeactivate events of it to handlers, add one for the forms OnClose event,modify as below.
[/quote]
I have modified it to show how to change the highlight color.
Main Topics
Browse All Topics





by: mikelittlewoodPosted on 2009-07-27 at 05:45:37ID: 24950873
This blue selection line is part of your windows theme and not delphi specific.
You can check this yourself by changing what theme you are using, ie blue to silver.