[Lazarus] MessageDlg() can't return a mbHelp result

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Sep 12 16:11:14 CEST 2012

On Wed, 12 Sep 2012 14:28:56 +0100
Graeme Geldenhuys <graeme at geldenhuys.co.uk> wrote:

> Hi,
> Has anybody actually noticed that MessageDlg() can define the mbHelp 
> button as one of the displayed buttons, but can't return the mbHelp 
> button as a result, because DialogResults() has it commented out (or 
> rather defined as mrNone)!!

Delphi invokes the help system when a mbHelp button is pressed, so a
help button does not need a return value.
That's why there is no mrHelp.

I added a comment to DialogResults.


More information about the Lazarus mailing list