[Lazarus] MessageDlg() return type

Graeme Geldenhuys graeme at geldenhuys.co.uk
Wed Sep 12 16:16:02 CEST 2012


On 12/09/12 15:03, Mattias Gaertner wrote:
>
> TModalResult = low(Integer)..high(Integer);
>
> I changed the result type to TModalResult.

OK, that makes more sense.


Now what return result is TWidgetSet.PromptUser() supposed to return? 
Also a TModalResult?

The reason I ask, is because in fpGUI the return result of a 
TfpgMessageDialog is a button type (the button the user clicked), and I 
need to know how to map that button type to a LongInt (or LCL 
TModalResult) or whatever PromptUser() must return.


Regards,
   - Graeme -





More information about the Lazarus mailing list