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/NatStat.pas

    r210 r244  
    1616    ToggleBtn: TButtonB;
    1717    CloseBtn: TButtonB;
    18     Popup: TPopupMenu;
     18    Popup: TDpiPopupMenu;
    1919    ScrollUpBtn: TButtonC;
    2020    ScrollDownBtn: TButtonC;
     
    435435var
    436436  p1, StartCount: integer;
    437   m: TMenuItem;
     437  m: TDpiMenuItem;
    438438  ExtinctPart: boolean;
    439439begin
     
    443443  if G.Difficulty[me] <> 0 then
    444444  begin
    445     m := TMenuItem.Create(Popup);
     445    m := TDpiMenuItem.Create(Popup);
    446446    m.RadioItem := true;
    447447    m.Caption := Tribe[me].TPhrase('TITLE_NATION');
     
    462462        (1 shl p1 and MyRO.Alive <> 0) and (MyRO.Treaty[p1] >= trNone) then
    463463      begin
    464         m := TMenuItem.Create(Popup);
     464        m := TDpiMenuItem.Create(Popup);
    465465        m.RadioItem := true;
    466466        m.Caption := Tribe[p1].TPhrase('TITLE_NATION');
     
    475475    if (StartCount > 0) and (Popup.Items.Count > StartCount) then
    476476    begin // seperator
    477       m := TMenuItem.Create(Popup);
     477      m := TDpiMenuItem.Create(Popup);
    478478      m.Caption := '-';
    479479      Popup.Items.Insert(StartCount, m);
Note: See TracChangeset for help on using the changeset viewer.