Project JEDI - Issue Tracker - JEDI VCL
Viewing Issue Advanced Details
5920 00 JVCL Components major always 2012-06-27 13:14 2015-09-21 17:47
Arioch  
AHUser  
normal  
resolved  
fixed  
none    
none 3.49  
0005920: jvcolorbutton rendering broken on Enabled toggling
I've found small problem with this gadget:
 - I change status Enebled to False.
 - I change status Enabled to True.
 - I change color - Showing color is wrong....

 I've fixed it for my copy:
 part of procedure TJvColorButton.Paint:


 if Enabled then
     Frame3D(Canvas, Rec, cl3DDkShadow, cl3DDkShadow, 1)
 else
 begin
     Frame3D(Canvas, Rec, clBtnShadow, clBtnHighLight, 1);
     Canvas.Brush.Style := bsBDiagonal;
 end;

 I've changed to:

     if Enabled then
     begin
       Frame3D(Canvas, Rec, cl3DDkShadow, cl3DDkShadow, 1);
       Canvas.Brush.Style := bsSolid;
     end
     else
     begin
       Frame3D(Canvas, Rec, clBtnShadow, clBtnHighLight, 1);
       Canvas.Brush.Style := bsBDiagonal;
     end;
take demo from 0005695

Buttons 1 and 2 should revert each over, but they do not.


 PS. Frankly, diagonal style of "Disabled" button brush is not obvious solution. IT might be bright black stripes over bright black background for example.
 The overall "disabled" style should be rethought or maybe even made customized.
related to 0005695resolved obones tjvcolorbutton does not get focus 
Issue History
2012-06-27 13:14 Arioch New Issue
2013-01-15 15:07 obones Relationship added related to 0005695
2013-01-15 15:07 obones Status new => acknowledged
2013-05-25 17:53 AHUser Note Added: 0020517
2013-05-25 17:53 AHUser Status acknowledged => resolved
2013-05-25 17:53 AHUser Fixed in Version => Daily / SVN
2013-05-25 17:53 AHUser Resolution open => fixed
2013-05-25 17:53 AHUser Assigned To => AHUser
2015-09-21 17:47 obones Fixed in Version Daily / GIT => 3.49

Notes
(0020517)
AHUser   
2013-05-25 17:53   
Fixed in svn revision 13528.