https://dl3.downloadly.ir/Files/Software/Iocomp_Components_Full_Sources_Product_4.0.4_SP2_Delphi_Rio_Compatible_Downloadly.ir.rar
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
//with Canvas, IndicatorRect do with Canvas do begin Brush.Style := bsSolid; IndicatorCenterPoint := GetXYRadPoint(IndicatorDegrees, FKnobRadius - FIndicatorMargin - FIndicatorSize, CenterPoint);
if FMouseDown or FKeyDown then begin Pen.Color := FIndicatorActiveColor; Brush.Color := FIndicatorActiveColor end else begin Pen.Color := FIndicatorInactiveColor; Brush.Color := FIndicatorInactiveColor; end;
还有,TiAnlogDisplay控件也有这个问题: procedure TiAnalogDisplay.iPaintTo(Canvas: TCanvas); var AText : String; ATextRect : TRect; ATextFlags : TiTextFlags; begin with Canvas, ATextRect do begin if not ErrorActive then begin if FPrecision >= 0 then AText := Trim(Format('%.' + IntToStr(FPrecision) + 'f', [FValue])) + FUnitsText else AText := Trim(Format('%g', [FValue])) + FUnitsText;
Font.Assign(FFont); DrawBackGround(Canvas, BackGroundColor); end else begin AText := ErrorText; Font.Assign(ErrorFont); DrawBackGround(Canvas, ErrorBackGroundColor); end;
case BorderStyle of ibsNone : begin ATextRect.Top := 2; ATextRect.Bottom := Self.Height - 2; end; ibsRaised : begin ATextRect.Top := 2; ATextRect.Bottom := Self.Height - 2; end; ibsLowered : begin ATextRect.Top := 2; ATextRect.Bottom := Self.Height - 4; end; end;