View Issue Details

IDProjectCategoryView StatusLast Update
0003121JEDI VCL00 JVCL Componentspublic2005-08-09 03:03
ReporterZioNemoAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 
Target VersionFixed in Version3.10 
Summary0003121: TJvShapedButton: some shapes do not honour 'Flat' property
DescriptionSetting the Flat property has no effect on some shapes (I needed jvSRound, but that's not the only one).
For the property I needed I added:
...
    if FFlat then
    begin
       // just draw a border of the right color
      Pen.Color := FFlatBorderColor;
      Ellipse(Rect.Left, Rect.Top, Rect.Right, Rect.Bottom);
      InflateRect(Rect, -1, -1);
    end
    else
    if OdsDown then
...
in procedure TJvShapedButton.CNDrawItemRound(var Msg: TWMDrawItem); obtaining the desired effect.
I do not know if this is the right fix and if I should submit a patch for all the shapes.

Regards
ZioNemo
TagsNo tags attached.

Activities

obones

2005-08-09 03:03

administrator   ~0007702

This is now fixed in CVS, all shapes are now consistent.

Issue History

Date Modified Username Field Change
2005-07-29 04:20 ZioNemo New Issue
2005-08-09 03:03 obones Status new => resolved
2005-08-09 03:03 obones Resolution open => fixed
2005-08-09 03:03 obones Assigned To => obones
2005-08-09 03:03 obones Note Added: 0007702