Ignore:
Timestamp:
Jul 7, 2010, 4:51:54 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

Upgrading to version 27

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/trunk/CPRS-Chart/fDupPts.pas

    r456 r830  
    55uses
    66  Windows, Messages, SysUtils, Variants, Classes, Graphics,
    7   Controls, Forms, Dialogs, StdCtrls, ORCtrls, ExtCtrls, OrFn;
     7  Controls, Forms, Dialogs, StdCtrls, ORCtrls, ExtCtrls, OrFn, fBase508Form,
     8  VA508AccessibilityManager;
    89
    910type
    10   TfrmDupPts = class(TForm)
     11  TfrmDupPts = class(TfrmBase508Form)
    1112    pnlDupPts: TPanel;
    1213    btnOK: TButton;
     
    5051  fPtSel.DupDFN := 'Cancel'; // Pre-set as default.
    5152  theDups := tStringList.create;
    52   theDups.assign(fPtSel.PtStrs);
    53   lboSelPt.items.assign(theDups);
     53  FastAssign(fPtSel.PtStrs, theDups);
     54  FastAssign(theDups, lboSelPt.Items);
    5455  ResizeAnchoredFormToFont(self);
    5556end;
     
    7273  Shift: TShiftState);
    7374begin
    74 
    75 // Check for "Esc" keypress:
    76 if (key = 27) then // ESC key.
    77   btnCancel.click;
    78 
     75  inherited;
     76  if (key = VK_ESCAPE) then
     77    btnCancel.click;
    7978end;
    8079
Note: See TracChangeset for help on using the changeset viewer.