Ignore:
Timestamp:
May 19, 2022, 10:39:34 PM (2 years ago)
Author:
chronos
Message:
  • Modified: Use first capital letter in identifiers.
File:
1 edited

Legend:

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

    r442 r447  
    2323    procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
    2424    procedure FormDeactivate(Sender: TObject);
    25     procedure SmartUpdateContent(ImmUpdate: Boolean = false);
     25    procedure SmartUpdateContent(ImmUpdate: Boolean = False);
    2626    procedure StayOnTop_Workaround;
    2727  protected
     
    5050    CaptionRight: Integer;
    5151    InnerWidth: Integer;
    52     InnerHeight: integer;
     52    InnerHeight: Integer;
    5353    WideBottom: Boolean;
    5454    FullCaption: Boolean;
     
    180180      UserLeft := Left;
    181181      UserTop := Top;
    182       Visible := false;
     182      Visible := False;
    183183      FWindowMode := NewMode;
    184184      ShowModal;
     
    186186    else if forceclose then
    187187    begin // make modal
    188       Visible := false;
     188      Visible := False;
    189189      FWindowMode := NewMode;
    190190      Left := UserLeft;
     
    272272procedure TFramedDlg.SmartInvalidate;
    273273var
    274   i, BottomFrame: integer;
     274  I, BottomFrame: Integer;
    275275  r0, r1: HRgn;
    276276begin
     
    281281  r0 := CreateRectRgn(SideFrame, TitleHeight, ClientWidth - SideFrame,
    282282    ClientHeight - BottomFrame);
    283   for i := 0 to ControlCount - 1 do
    284     if not(Controls[i] is TArea) and Controls[i].Visible then
     283  for I := 0 to ControlCount - 1 do
     284    if not(Controls[I] is TArea) and Controls[I].Visible then
    285285    begin
    286       with Controls[i].BoundsRect do
     286      with Controls[I].BoundsRect do
    287287        r1 := CreateRectRgn(Left, Top, Right, Bottom);
    288288      CombineRgn(r0, r0, r1, RGN_DIFF);
     
    295295procedure TFramedDlg.VPaint;
    296296
    297   procedure CornerFrame(x0, y0, x1, y1: integer);
     297  procedure CornerFrame(x0, y0, x1, y1: Integer);
    298298  begin
    299299    Frame(Canvas, x0 + 1, y0 + 1, x1 - 2, y1 - 2, MainTexture.ColorBevelLight,
     
    308308
    309309var
    310   i, l, FrameTop, FrameBottom, InnerBottom, Cut, xTexOffset,
    311     yTexOffset: integer;
     310  I, L, FrameTop, FrameBottom, InnerBottom, Cut, xTexOffset,
     311    yTexOffset: Integer;
    312312  R: TRect;
    313313begin
     
    321321  end;
    322322  Canvas.Font.Assign(UniFont[ftCaption]);
    323   l := BiColorTextWidth(Canvas, Caption);
    324   Cut := (ClientWidth - l) div 2;
     323  L := BiColorTextWidth(Canvas, Caption);
     324  Cut := (ClientWidth - L) div 2;
    325325  xTexOffset := (Maintexture.Width - ClientWidth) div 2;
    326326  yTexOffset := (Maintexture.Height - ClientHeight) div 2;
     
    446446  RisedTextOut(Canvas, Cut - 1, 7, Caption);
    447447
    448   for i := 0 to ControlCount - 1 do
    449     if Controls[i].Visible and (Controls[i] is TButtonBase) then
     448  for I := 0 to ControlCount - 1 do
     449    if Controls[I].Visible and (Controls[I] is TButtonBase) then
    450450    begin
    451       R := Controls[i].BoundsRect;
     451      R := Controls[I].BoundsRect;
    452452      if (R.Bottom <= TitleHeight) or (R.Top >= InnerBottom) then
    453453        BtnFrame(Canvas, R, MainTexture);
     
    463463begin
    464464  if FullCaption then
    465     exit;
     465    Exit;
    466466  r0 := CreateRectRgn(0, 0, ClientWidth, ClientHeight);
    467467  r1 := CreateRectRgn(0, 0, CaptionLeft, TitleHeight - NarrowFrame);
Note: See TracChangeset for help on using the changeset viewer.