Changeset 460 for trunk/Packages/CevoComponents/BaseWin.pas
- Timestamp:
- Nov 28, 2023, 3:16:24 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/BaseWin.pas
r447 r460 14 14 15 15 TBufferedDrawDlg = class(TDrawDlg) 16 public17 UserLeft: Integer;18 UserTop: Integer;19 constructor Create(AOwner: TComponent); override;20 destructor Destroy; override;21 procedure FormClose(Sender: TObject; var Action: TCloseAction);22 procedure FormPaint(Sender: TObject);23 procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);24 procedure FormDeactivate(Sender: TObject);25 procedure SmartUpdateContent(ImmUpdate: Boolean = False);26 procedure StayOnTop_Workaround;27 16 protected 28 17 FWindowMode: TWindowMode; … … 34 23 procedure VPaint; virtual; 35 24 public 25 UserLeft: Integer; 26 UserTop: Integer; 36 27 UsedOffscreenWidth: Integer; 37 28 UsedOffscreenHeight: Integer; 38 29 Offscreen: TBitmap; 39 30 OffscreenUser: TForm; 31 constructor Create(AOwner: TComponent); override; 32 destructor Destroy; override; 33 procedure FormClose(Sender: TObject; var Action: TCloseAction); 34 procedure FormPaint(Sender: TObject); 35 procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); 36 procedure FormDeactivate(Sender: TObject); 37 procedure SmartUpdateContent(ImmUpdate: Boolean = False); 38 procedure StayOnTop_Workaround; 40 39 property WindowMode: TWindowMode read FWindowMode; 41 40 end; 42 41 43 42 TFramedDlg = class(TBufferedDrawDlg) 44 public45 constructor Create(AOwner: TComponent); override;46 procedure FormCreate(Sender: TObject);47 procedure SmartInvalidate; override;48 43 protected 49 44 CaptionLeft: Integer; … … 58 53 procedure VPaint; override; 59 54 procedure FillOffscreen(Left, Top, Width, Height: Integer); 55 public 56 constructor Create(AOwner: TComponent); override; 57 procedure FormCreate(Sender: TObject); 58 procedure SmartInvalidate; override; 60 59 end; 61 60 … … 120 119 UserTop := Top; 121 120 end; 122 if OffscreenUser = self then121 if OffscreenUser = Self then 123 122 OffscreenUser := nil; 124 123 end; … … 126 125 procedure TBufferedDrawDlg.FormPaint(Sender: TObject); 127 126 begin 128 if OffscreenUser <> self then127 if OffscreenUser <> Self then 129 128 OffscreenPaint; 130 129 VPaint;
Note:
See TracChangeset
for help on using the changeset viewer.