Ignore:
Timestamp:
Jun 23, 2019, 12:36:19 AM (5 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DpiControls/Demo/UDpiFormMain.pas

    r535 r537  
    1616    procedure DpiButton1Click(Sender: TObject);
    1717    procedure DpiFormMainCreate(Sender: TObject);
     18    procedure DpiFormMainDestroy(Sender: TObject);
    1819    procedure DpiPaintBox1Paint(Sender: TObject);
    1920  private
     21    Button: TDpiButton;
     22    Image: TDpiImage;
     23    ListBox: TDpiListBox;
     24    PaintBox: TDpiPaintBox;
    2025  public
    2126
     
    3338procedure TDpiFormMain.DpiFormMainCreate(Sender: TObject);
    3439var
    35   Button: TDpiButton;
    36   Image: TDpiImage;
    37   ListBox: TDpiListBox;
    3840  I: Integer;
    39   PaintBox: TDpiPaintBox;
    4041begin
    4142  Button := TDpiButton.Create(DpiFormMain);
     
    6566end;
    6667
     68procedure TDpiFormMain.DpiFormMainDestroy(Sender: TObject);
     69begin
     70  FreeAndNil(Button);
     71  FreeAndNil(Image);
     72  FreeAndNil(ListBox);
     73end;
     74
    6775procedure TDpiFormMain.DpiPaintBox1Paint(Sender: TObject);
    6876begin
Note: See TracChangeset for help on using the changeset viewer.