Changeset 620 for trunk/Packages/CevoComponents/BaseWin.pas
- Timestamp:
- Sep 15, 2024, 5:34:07 PM (8 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/BaseWin.pas
r567 r620 69 69 SideFrame = 9; 70 70 71 procedure CreateOffscreen(var Offscreen: TBitmap );71 procedure CreateOffscreen(var Offscreen: TBitmap; Width, Height: Integer); 72 72 function WindowModeMakePersistent(Mode: TWindowMode): TWindowMode; 73 73 procedure Register; … … 93 93 constructor TBufferedDrawDlg.Create(AOwner: TComponent); 94 94 begin 95 BaseWin.CreateOffscreen(Offscreen );95 BaseWin.CreateOffscreen(Offscreen, Width, Height); 96 96 OnClose := FormClose; 97 97 OnPaint := FormPaint; … … 159 159 procedure TBufferedDrawDlg.OffscreenPaint; 160 160 begin 161 BaseWin.CreateOffscreen(Offscreen, Width, Height); 161 162 if (OffscreenUser <> nil) and (OffscreenUser <> Self) then 162 163 OffscreenUser.Update; // complete working with old owner to prevent rebound … … 332 333 Frame(Canvas, SideFrame - 1, TitleHeight - 1, ClientWidth - SideFrame, 333 334 InnerBottom, MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 334 // RFrame(Canvas,SideFrame -2,TitleHeight-2,ClientWidth-SideFrame+1,335 // InnerBottom +1,MainTexture.ColorBevelShade,MainTexture.ColorBevelLight);335 // RFrame(Canvas,SideFrame - 2, TitleHeight - 2, ClientWidth - SideFrame + 1, 336 // InnerBottom + 1, MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 336 337 if FullCaption then begin 337 338 if (FWindowMode <> wmModal) or not ModalIndication then … … 475 476 end; 476 477 477 procedure CreateOffscreen(var Offscreen: TBitmap );478 procedure CreateOffscreen(var Offscreen: TBitmap; Width, Height: Integer); 478 479 var 479 480 NewWidth: Integer; … … 484 485 Offscreen.PixelFormat := TPixelFormat.pf24bit; 485 486 end; 486 if Screen.Height - yUnused < 480 then begin487 NewWidth := Screen.Width;487 if Height - yUnused < 480 then begin 488 NewWidth := Width; 488 489 NewHeight := 480; 489 490 end else begin 490 NewWidth := Screen.Width;491 NewHeight := Screen.Height - yUnused;491 NewWidth := Width; 492 NewHeight := Height - yUnused; 492 493 end; 493 494 if (Offscreen.Width <> NewWidth) or (Offscreen.Height <> NewHeight) then begin
Note:
See TracChangeset
for help on using the changeset viewer.