Ignore:
Timestamp:
Apr 6, 2021, 7:19:02 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Optimized help water sign drawing.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Select.pas

    r340 r346  
    4545  private
    4646    Kind: TListKind;
    47     LineDistance, MaxLines, cixProject, pView, Sel, DispLines, Layer, nColumn,
    48       TechNameSpace, ScienceNation: integer;
     47    LineDistance: Integer;
     48    MaxLines: Integer;
     49    cixProject: Integer;
     50    pView: Integer;
     51    Sel: Integer;
     52    DispLines: Integer;
     53    Layer: Integer;
     54    nColumn: Integer;
     55    TechNameSpace: Integer;
     56    ScienceNation: Integer;
    4957    sb: TPVScrollbar;
    5058    Lines, FirstShrinkedLine: array [0 .. MaxLayer - 1] of integer;
    5159    code: array [0 .. MaxLayer - 1, 0 .. 4095] of integer;
    5260    Column: array [0 .. nPl - 1] of integer;
    53     Closable, MultiPage: boolean;
     61    Closable: Boolean;
     62    MultiPage: Boolean;
    5463    ScienceNationDotBuffer: TBitmap;
    5564    procedure ScrollBarUpdate(Sender: TObject);
     
    5867    function RenameCity(cix: integer): boolean;
    5968    function RenameModel(mix: integer): boolean;
    60     procedure OnScroll(var m: TMessage); message WM_VSCROLL;
     69    procedure OnScroll(var Msg: TMessage); message WM_VSCROLL;
    6170    procedure OnMouseLeave(var Msg: TMessage); message CM_MOUSELEAVE;
    6271  public
     
    133142end;
    134143
    135 procedure TListDlg.OnScroll(var m: TMessage);
     144procedure TListDlg.OnScroll(var Msg: TMessage);
    136145begin
    137146  { TODO: Handled by MouseWheel event
    138   if sb.Process(m) then  begin
     147  if sb.Process(Msg) then  begin
    139148    Sel := -2;
    140149    SmartUpdateContent(true);
Note: See TracChangeset for help on using the changeset viewer.