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/LocalPlayer/PVSB.pas

    r442 r447  
    3030    procedure Init(Max, PageSize: Integer);
    3131    procedure SetPos(Pos: Integer);
    32     function Process(const Msg: TMessage): boolean;
     32    function Process(const Msg: TMessage): Boolean;
    3333    function ProcessMouseWheel(Delta: Integer): Boolean;
    34     procedure Show(Visible: boolean);
     34    procedure Show(Visible: Boolean);
    3535    procedure EndSB;
    3636    procedure SetBorderSpacing(Top, Right, Bottom: Integer);
     
    6363end;
    6464
    65 function TPVScrollBar.Process(const Msg: TMessage): boolean;
     65function TPVScrollBar.Process(const Msg: TMessage): Boolean;
    6666var
    67   NewPos: integer;
     67  NewPos: Integer;
    6868begin
    6969    if Max < ScrollBar.PageSize then
    70       result := false
     70      Result := False
    7171    else
    7272    begin
    7373      if (Msg.wParam and $ffff) in [SB_THUMBPOSITION, SB_THUMBTRACK] then
    7474      begin
    75         result := ((Msg.wParam shr 16) and $ffff) <> ScrollBar.Position;
     75        Result := ((Msg.wParam shr 16) and $ffff) <> ScrollBar.Position;
    7676        ScrollBar.Position := (Msg.wParam shr 16) and $ffff;
    7777      end else begin
     
    9292        if NewPos > Max - ScrollBar.PageSize + 1 then
    9393          NewPos := Max - ScrollBar.PageSize + 1;
    94         result := NewPos <> ScrollBar.Position;
     94        Result := NewPos <> ScrollBar.Position;
    9595        if (NewPos <> ScrollBar.Position) or ((Msg.wParam and $ffff) = SB_ENDSCROLL) then
    9696        begin
     
    103103function TPVScrollBar.ProcessMouseWheel(Delta: Integer): Boolean;
    104104var
    105   NewPos: integer;
     105  NewPos: Integer;
    106106begin
    107107    if Max < ScrollBar.PageSize then Result := False
     
    118118end;
    119119
    120 procedure TPVScrollBar.Show(Visible: boolean);
     120procedure TPVScrollBar.Show(Visible: Boolean);
    121121begin
    122122  if not Visible or (Max < ScrollBar.PageSize) then
Note: See TracChangeset for help on using the changeset viewer.