Ignore:
Timestamp:
Nov 29, 2023, 6:25:22 PM (12 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CevoComponents/BaseWin.pas

    r460 r464  
    3535    procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
    3636    procedure FormDeactivate(Sender: TObject);
    37     procedure SmartUpdateContent(ImmUpdate: Boolean = False);
    38     procedure StayOnTop_Workaround;
     37    procedure SmartUpdateContent(ImmediateUpdate: Boolean = False);
    3938    property WindowMode: TWindowMode read FWindowMode;
    4039  end;
     
    214213end;
    215214
    216 procedure TBufferedDrawDlg.SmartUpdateContent(ImmUpdate: Boolean);
     215procedure TBufferedDrawDlg.SmartUpdateContent(ImmediateUpdate: Boolean);
    217216begin
    218217  if Visible then begin
    219218    OffscreenPaint;
    220219    SmartInvalidate;
    221     if ImmUpdate then
     220    if ImmediateUpdate then
    222221      Update;
    223222  end;
     
    230229  if yMax > UsedOffscreenHeight then
    231230    UsedOffscreenHeight := yMax;
    232 end;
    233 
    234 procedure TBufferedDrawDlg.StayOnTop_Workaround;
    235 // stayontop doesn't work when window is shown for the first time
    236 // after application lost focus, so show all stayontop-windows in first turn
    237 var
    238   SaveOnShow, SaveOnPaint: TNotifyEvent;
    239 begin
    240   Top := Screen.Height;
    241   SaveOnShow := OnShow;
    242   OnShow := nil;
    243   SaveOnPaint := OnPaint;
    244   OnPaint := nil;
    245   FWindowMode := wmNone;
    246   Show;
    247   Hide;
    248   OnShow := SaveOnShow;
    249   OnPaint := SaveOnPaint;
    250231end;
    251232
Note: See TracChangeset for help on using the changeset viewer.