Ignore:
Timestamp:
Jan 11, 2017, 5:26:09 PM (7 years ago)
Author:
chronos
Message:
  • Fixed: Deallocation of TPVScrollBar structure. Changed to class and added initialization and finalization.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Select.pas

    r41 r50  
    100100  inherited;
    101101  Canvas.Font.Assign(UniFont[ftNormal]);
     102  sb := TPVScrollbar.Create;
    102103  CreatePVSB(sb, Handle, 2, 361, 2 + 422);
    103104  InitButtons();
     
    114115procedure TListDlg.FormDestroy(Sender: TObject);
    115116begin
    116   ScienceNationDot.Free;
     117  FreeAndNil(sb);
     118  FreeAndNil(ScienceNationDot);
    117119end;
    118120
     
    120122begin
    121123  Closable := true;
    122   Close
     124  Close;
    123125end;
    124126
    125127procedure TListDlg.FormCloseQuery(Sender: TObject; var CanClose: boolean);
    126128begin
    127   CanClose := Closable or not(Kind in MustChooseKind)
     129  CanClose := Closable or not(Kind in MustChooseKind);
    128130end;
    129131
     
    133135  begin
    134136    Sel := -2;
    135     SmartUpdateContent(true)
    136   end
     137    SmartUpdateContent(true);
     138  end;
    137139end;
    138140
     
    145147    PaintBox1MouseMove(nil, [], m.lParam and $FFFF - Left,
    146148      m.lParam shr 16 - Top);
    147   end
     149  end;
    148150end;
    149151
     
    154156    line(Canvas, Sel, false, false);
    155157    Sel := -2;
    156   end
     158  end;
    157159end;
    158160
     
    183185    LoweredTextOut(Canvas, -2, MainTexture,
    184186      (ClientWidth - BiColorTextWidth(Canvas, s)) div 2, ClientHeight - 29, s);
    185   end
     187  end;
    186188end;
    187189
Note: See TracChangeset for help on using the changeset viewer.