View Issue Details

IDProjectCategoryView StatusLast Update
0005920JEDI VCL00 JVCL Componentspublic2015-09-21 17:47
ReporterAriochAssigned ToAHUser 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version3.49 
Summary0005920: jvcolorbutton rendering broken on Enabled toggling
DescriptionI'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;
Steps To Reproducetake 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.
TagsNo tags attached.

Relationships

related to 0005695 resolvedobones tjvcolorbutton does not get focus 

Activities

AHUser

2013-05-25 17:53

developer   ~0020517

Fixed in svn revision 13528.

Issue History

Date Modified Username Field Change
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