Recent

Author Topic: [SOLVED] String to TColor issues  (Read 3640 times)

JD

  • Hero Member
  • *****
  • Posts: 1905
[SOLVED] String to TColor issues
« on: September 16, 2016, 08:52:11 pm »
Hi there everyone,

I'm trying to convert a string to a TColor so that I can use it on a Color button

Code: Pascal  [Select][+][-]
  1. ColorButton1.ButtonColor     := StringToColor('clSkyBlue');
  2.  

But the colour on the button after the StringToColor conversion is not clSkyBlue. It looks closer to brown than blue.

What am I doing wrong?

JD

EDIT: I solved the problem. There was a reassignment in the value of ColorButton1 colour that was causing the problem. 
« Last Edit: September 17, 2016, 12:30:25 pm by JD »
Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

 

TinyPortal © 2005-2018