Changeset 721 for trunk/Packages/CevoComponents/ScreenTools.pas
- Timestamp:
- Jan 12, 2026, 4:03:17 PM (8 hours ago)
- File:
-
- 1 edited
-
trunk/Packages/CevoComponents/ScreenTools.pas (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/ScreenTools.pas
r719 r721 91 91 T: TTexture); 92 92 procedure CountBar(Dst: TBitmap; X, Y, W: Integer; Kind: Integer; 93 Cap: string; Val: Integer; T : TTexture);93 Cap: string; Val: Integer; Texture: TTexture); 94 94 procedure PaintProgressBar(Canvas: TCanvas; Kind, X, Y, Pos, Growth, Max: Integer; 95 T : TTexture);95 Texture: TTexture); 96 96 procedure PaintRelativeProgressBar(Canvas: TCanvas; 97 97 Kind, X, Y, Size, Pos, Growth, Max: Integer; IndicateComplete: Boolean; 98 T : TTexture);98 Texture: TTexture); 99 99 procedure PaintLogo(Canvas: TCanvas; X, Y, LightColor, ShadeColor: Integer); 100 100 procedure DrawBufferEnsureSize(Width, Height: Integer); … … 1435 1435 1436 1436 procedure CountBar(Dst: TBitmap; X, Y, W: Integer; Kind: Integer; 1437 Cap: string; Val: Integer; T : TTexture);1437 Cap: string; Val: Integer; Texture: TTexture); 1438 1438 var 1439 1439 I, sd, ld, cl, xIcon, yIcon: Integer; … … 1448 1448 // xIcon:=x+100; 1449 1449 // yIcon:=y; 1450 // DLine(Dst.Canvas,x-2,x+170+32,y+16,T .ColorBevelShade,T.ColorBevelLight);1450 // DLine(Dst.Canvas,x-2,x+170+32,y+16,Texture.ColorBevelShade,Texture.ColorBevelLight); 1451 1451 1452 1452 xIcon := X - 5; 1453 1453 yIcon := Y + 15; 1454 DLine(Dst.Canvas, X - 2, xIcon + W + 2, yIcon + 16, T .ColorBevelShade,1455 T .ColorBevelLight);1454 DLine(Dst.Canvas, X - 2, xIcon + W + 2, yIcon + 16, Texture.ColorBevelShade, 1455 Texture.ColorBevelLight); 1456 1456 1457 1457 S := IntToStr(Val); … … 1460 1460 else 1461 1461 cl := -1; 1462 LoweredTextOut(Dst.Canvas, cl, T , X - 2, Y, Cap);1463 LoweredTextOut(Dst.Canvas, cl, T ,1462 LoweredTextOut(Dst.Canvas, cl, Texture, X - 2, Y, Cap); 1463 LoweredTextOut(Dst.Canvas, cl, Texture, 1464 1464 xIcon + W + 2 - BiColorTextWidth(Dst.Canvas, S), yIcon, S); 1465 1465 … … 1531 1531 1532 1532 procedure PaintProgressBar(Canvas: TCanvas; Kind, X, Y, Pos, Growth, Max: Integer; 1533 T : TTexture);1533 Texture: TTexture); 1534 1534 var 1535 1535 I: Integer; … … 1543 1543 begin 1544 1544 Growth := Growth - Pos; 1545 if Growth > Max then Growth := Max; 1545 1546 Pos := 0; 1546 1547 end; … … 1549 1550 Growth := Max - Pos; 1550 1551 Frame(Canvas, X - 1, Y - 1, X + Max, Y + 7, $000000, $000000); 1551 RFrame(Canvas, X - 2, Y - 2, X + Max + 1, Y + 8, T .ColorBevelShade,1552 T .ColorBevelLight);1552 RFrame(Canvas, X - 2, Y - 2, X + Max + 1, Y + 8, Texture.ColorBevelShade, 1553 Texture.ColorBevelLight); 1553 1554 with Canvas do 1554 1555 begin … … 1585 1586 procedure PaintRelativeProgressBar(Canvas: TCanvas; 1586 1587 Kind, X, Y, Size, Pos, Growth, Max: Integer; IndicateComplete: Boolean; 1587 T : TTexture);1588 Texture: TTexture); 1588 1589 begin 1589 1590 if Growth > 0 then 1590 1591 PaintProgressBar(Canvas, Kind, X, Y, Pos * Size div Max, 1591 (Growth * Size + Max div 2) div Max, Size, T )1592 (Growth * Size + Max div 2) div Max, Size, Texture) 1592 1593 else 1593 1594 PaintProgressBar(Canvas, Kind, X, Y, Pos * Size div Max, 1594 (Growth * Size - Max div 2) div Max, Size, T );1595 (Growth * Size - Max div 2) div Max, Size, Texture); 1595 1596 if IndicateComplete and (Pos + Growth >= Max) then 1596 1597 Sprite(Canvas, HGrSystem, X + Size - 10, Y - 7, 23, 16, 1, 129);
Note:
See TracChangeset
for help on using the changeset viewer.
