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

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

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

Postby Dzyszla » June 27th, 2011, 3:26 pm

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.
mgr inż. Dżyszla
User avatar
Dzyszla
Member
Member
 
Posts: 4
Joined: June 26th, 2011, 4:55 pm
Location: Żory / Poland

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

Postby Kambiz » June 27th, 2011, 7:27 pm

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.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

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

Postby Dzyszla » June 28th, 2011, 5:20 am

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! :)
mgr inż. Dżyszla
User avatar
Dzyszla
Member
Member
 
Posts: 4
Joined: June 26th, 2011, 4:55 pm
Location: Żory / Poland


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: Bing [Bot] and 4 guests

cron