On Wed, 12 Sep 2012 14:30:50 +0100
Graeme Geldenhuys <[email protected]> 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

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to