0

I´m use this code: Long descriptions on Inno Setup components

I'm trying to change the color of the description of the ¨Additional Files¨ only. How to change the color only of this? (when i move the mouse over ¨additional components¨ or ¨componentes adicionales¨).

enter image description here

Community
  • 1
  • 1
Nico Z
  • 997
  • 10
  • 33

1 Answers1

1

Try setting CompLabel.Font.Color:

if Index = 1 then
begin
  CompLabel.Font.Color := clRed;
end
  else
begin
  CompLabel.Font.Color := clWindowText;
end;
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
  • Is it possible to reduce the area over which, when positioning with the mouse, the color change of the description occurs? if i put the mouse pointer far from the words but in the same line, the color change occurs. I want that the change color occurs only if i put the mouse pointer over the words. (sorry for my bad english). – Nico Z Nov 13 '17 at 23:04
  • @NicoZ It may be possible. You would have to use `DrawText` WinAPI with `DT_CALCRECT` flag to calculate the text size. It would not be 100% even then. – Martin Prikryl Nov 14 '17 at 06:56