Page 1 of 1

[TGradient] Small bug(?) with system color...

PostPosted: June 27th, 2011, 3:26 pm
by Dzyszla
Hi! It's me again ;)
When I set property (in Delphi IDE) to system color (f.ex. clBtnFace), there are no effect after execute exe. I solved this by change this lines:
Code: Select all
   property ColorBegin: TColor read fColorBegin write SetColorBegin default clWhite;
   property ColorEnd: TColor read fColorEnd write SetColorEnd default clBtnFace;
and removing functions IsColor...Saved.

BTW, IMHO the property UseSysColors isn't useful.

Re: [TGradient] Small bug(?) with system color...

PostPosted: June 27th, 2011, 7:27 pm
by Kambiz
The problem is because of my copy & paste mistake.

To fix the bug, actually you should rename ColorBegin to ColorEnd in line #1060.

To me UseSysColors is not useful either, but some people suggested and used it.

Re: [TGradient] Small bug(?) with system color...

PostPosted: June 28th, 2011, 5:20 am
by Dzyszla
Thx for the reply :) For me my solution with default value and removed UseSysColor work too ;)
Good luck and more ideas for new great components! :)