Changeset 463 for branches/highdpi/Packages/CevoComponents/ButtonC.pas
- Timestamp:
- Nov 29, 2023, 2:35:44 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Packages/CevoComponents/ButtonC.pas
r303 r463 14 14 published 15 15 property Visible; 16 property ButtonIndex: integer read FIndex write SetIndex;16 property ButtonIndex: Integer read FIndex write SetIndex; 17 17 property OnClick; 18 18 protected … … 41 41 with Canvas do 42 42 if FGraphic <> nil then 43 DpiBit Canvas(Canvas, 0, 0, 12, 12, FGraphic.Canvas,43 DpiBitBltCanvas(Canvas, 0, 0, 12, 12, FGraphic.Canvas, 44 44 169 + 13 * Byte(FDown), 159 + 13 * FIndex) 45 45 else 46 46 begin 47 47 Brush.Color := $0000FF; 48 FrameRect(Rect(0, 0, 12, 12)) 48 FrameRect(Rect(0, 0, 12, 12)); 49 49 end; 50 50 end; 51 51 52 procedure TButtonC.SetIndex(Text: integer);52 procedure TButtonC.SetIndex(Text: Integer); 53 53 begin 54 54 if Text <> FIndex then
Note:
See TracChangeset
for help on using the changeset viewer.