Changeset 463 for branches/highdpi/Packages/CevoComponents/ButtonB.pas
- Timestamp:
- Nov 29, 2023, 2:35:44 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Packages/CevoComponents/ButtonB.pas
r303 r463 11 11 private 12 12 FMask: TDpiBitmap; 13 FIndex: integer;14 procedure SetIndex(Text: integer);13 FIndex: Integer; 14 procedure SetIndex(Text: Integer); 15 15 public 16 16 property Mask: TDpiBitmap read FMask write FMask; 17 17 published 18 18 property Visible; 19 property ButtonIndex: integer read FIndex write SetIndex;19 property ButtonIndex: Integer read FIndex write SetIndex; 20 20 property OnClick; 21 21 protected … … 47 47 with Canvas do 48 48 if FGraphic <> nil then begin 49 DpiBit Canvas(Canvas, 0, 0, 25, 25, FGraphic.Canvas, 169,49 DpiBitBltCanvas(Canvas, 0, 0, 25, 25, FGraphic.Canvas, 169, 50 50 243 + 26 * Byte(FDown)); 51 51 if FIndex >= 0 then begin 52 DpiBit Canvas(Canvas, 0, 0, 25, 25, FMask.Canvas,52 DpiBitBltCanvas(Canvas, 0, 0, 25, 25, FMask.Canvas, 53 53 1 + FIndex mod 12 * 26, 337 + FIndex div 12 * 26, SRCAND); 54 DpiBit Canvas(Canvas, 0, 0, 25, 25, FGraphic.Canvas,54 DpiBitBltCanvas(Canvas, 0, 0, 25, 25, FGraphic.Canvas, 55 55 1 + FIndex mod 12 * 26, 337 + FIndex div 12 * 26, SRCPAINT); 56 end 56 end; 57 57 end else begin 58 58 Brush.Color := $0000FF; … … 61 61 end; 62 62 63 procedure TButtonB.SetIndex(Text: integer);63 procedure TButtonB.SetIndex(Text: Integer); 64 64 begin 65 65 if Text <> FIndex then begin
Note:
See TracChangeset
for help on using the changeset viewer.