Ignore:
Timestamp:
Apr 28, 2022, 10:40:37 PM (2 years ago)
Author:
chronos
Message:
  • Modified: Changed WindowMode numerical constants to enumeration.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/CityType.pas

    r352 r431  
    2424    procedure DeleteBtnClick(Sender: TObject);
    2525  public
    26     procedure ShowNewContent(NewMode: integer);
     26    procedure ShowNewContent(NewMode: TWindowMode);
    2727  protected
    2828    procedure OffscreenPaint; override;
     
    226226end;
    227227
    228 procedure TCityTypeDlg.ShowNewContent(NewMode: integer);
     228procedure TCityTypeDlg.ShowNewContent(NewMode: TWindowMode);
    229229begin
    230230  inherited ShowNewContent(NewMode);
     
    246246  begin
    247247    if ssShift in Shift then
    248       HelpDlg.ShowNewContent(FWindowMode or wmPersistent, hkImp,
     248      HelpDlg.ShowNewContent(WindowModePersistent(FWindowMode), hkImp,
    249249        MyData.ImpOrder[ctype, i])
    250250    else
     
    263263  begin
    264264    if ssShift in Shift then
    265       HelpDlg.ShowNewContent(FWindowMode or wmPersistent, hkImp, Pooliix[i])
     265      HelpDlg.ShowNewContent(WindowModePersistent(FWindowMode), hkImp, Pooliix[i])
    266266    else
    267267    begin
Note: See TracChangeset for help on using the changeset viewer.