Changeset 358 for trunk/Messg.pas


Ignore:
Timestamp:
Apr 9, 2021, 9:51:17 AM (4 years ago)
Author:
chronos
Message:
  • Modified: Message kinds and message icons kinds changed to enumeration type.
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Messg.pas

    r189 r358  
    1212
    1313type
     14  TMessageKind = (mkOK, mkOKCancel, mkYesNo, mkYesNoCancel, mkOkCancelRemove,
     15    mkOkHelp, mkModel);
     16
    1417  TMessgDlg = class(TBaseMessgDlg)
    1518    Button1: TButtonA;
     
    2225    procedure FormKeyPress(Sender: TObject; var Key: char);
    2326  public
    24     Kind: integer;
     27    Kind: TMessageKind;
    2528    OpenSound: string;
    2629  private
    2730    procedure OnPlaySound(var Msg: TMessage); message WM_PLAYSOUND;
    2831  end;
    29 
    30 const
    31   // message kinds
    32   mkOK = 1;
    33   mkOKCancel = 2;
    34   mkYesNo = 3;
    3532
    3633var
Note: See TracChangeset for help on using the changeset viewer.