[Lazarus] MessageDlg() return type
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed Sep 12 16:03:23 CEST 2012
On Wed, 12 Sep 2012 14:30:50 +0100
Graeme Geldenhuys <graeme at geldenhuys.co.uk> wrote:
> Hi,
>
> Why is MessageDlg()'s return type a Integer and not a TMsgDlgBtn or
> TModalResult type?
>
> Surely the return type expect must be one of the TMsgDlgBtn or
> TModalResult enum types?
TModalResult = low(Integer)..high(Integer);
I changed the result type to TModalResult.
Note: QuestionDlg can return any TModalResult, not only the predefined
constants.
Mattias
More information about the Lazarus
mailing list