Ignore:
Timestamp:
May 21, 2020, 6:42:45 PM (4 years ago)
Author:
chronos
Message:
  • Added: TDpiPopupMenu and TDpiMenuItem support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Log.pas

    r210 r244  
    1010type
    1111  TLogDlg = class(TDpiForm)
    12     LogPopup: TPopupMenu;
    13     mLog0: TMenuItem;
    14     mLog1: TMenuItem;
    15     mLog2: TMenuItem;
    16     mLog3: TMenuItem;
    17     N1: TMenuItem;
    18     mClear: TMenuItem;
    19     mSlot: TMenuItem;
    20     N2: TMenuItem;
    21     mInvalid: TMenuItem;
    22     mTime: TMenuItem;
     12    LogPopup: TDpiPopupMenu;
     13    mLog0: TDpiMenuItem;
     14    mLog1: TDpiMenuItem;
     15    mLog2: TDpiMenuItem;
     16    mLog3: TDpiMenuItem;
     17    N1: TDpiMenuItem;
     18    mClear: TDpiMenuItem;
     19    mSlot: TDpiMenuItem;
     20    N2: TDpiMenuItem;
     21    mInvalid: TDpiMenuItem;
     22    mTime: TDpiMenuItem;
    2323    List: TMemo;
    24     mNegotiation: TMenuItem;
     24    mNegotiation: TDpiMenuItem;
    2525    procedure mLogClick(Sender: TObject);
    2626    procedure FormCreate(Sender: TObject);
     
    6060procedure TLogDlg.mLogClick(Sender: TObject);
    6161begin
    62   MaxLevel := TMenuItem(Sender).Tag;
    63   TMenuItem(Sender).Checked := true;
     62  MaxLevel := TDpiMenuItem(Sender).Tag;
     63  TDpiMenuItem(Sender).Checked := true;
    6464end;
    6565
     
    124124procedure TLogDlg.Toggle(Sender: TObject);
    125125begin
    126   TMenuItem(Sender).Checked := not TMenuItem(Sender).Checked;
     126  TDpiMenuItem(Sender).Checked := not TDpiMenuItem(Sender).Checked;
    127127end;
    128128
Note: See TracChangeset for help on using the changeset viewer.