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/LocalPlayer/Select.pas

    r210 r244  
    2727    Layer0Btn: TButtonB;
    2828    ToggleBtn: TButtonB;
    29     Popup: TPopupMenu;
     29    Popup: TDpiPopupMenu;
    3030    procedure FormMouseWheel(Sender: TObject; Shift: TShiftState;
    3131      WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);
     
    17731773var
    17741774  p1: integer;
    1775   m: TMenuItem;
     1775  m: TDpiMenuItem;
    17761776begin
    17771777  case Kind of
     
    17961796        if G.Difficulty[me] > 0 then
    17971797        begin
    1798           m := TMenuItem.Create(Popup);
     1798          m := TDpiMenuItem.Create(Popup);
    17991799          m.RadioItem := true;
    18001800          m.Caption := Tribe[me].TPhrase('SHORTNAME');
     
    18091809            (MyRO.EnemyReport[p1].TurnOfMilReport >= 0) then
    18101810          begin
    1811             m := TMenuItem.Create(Popup);
     1811            m := TDpiMenuItem.Create(Popup);
    18121812            m.RadioItem := true;
    18131813            m.Caption := Tribe[p1].TPhrase('SHORTNAME');
Note: See TracChangeset for help on using the changeset viewer.