[Lazarus] Custom login forms and modal results

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Mar 30 18:00:16 CEST 2012

On Fri, 30 Mar 2012 15:33:08 +0000
Mark Morgan Lloyd <markMLl.lazarus at telemetry.co.uk> wrote:

> If a custom login form (e.g. specifying a host and port for telnet) is 
> displayed, and the OK/Cancel buttons have modal results, what is the 
> procedure that set the form visible supposed to do pending getting the 
> form's modalResult? Once the form is set invisible, does it have to 
> clear modalResult back to mrNone, or is this done automatically?

A form is shown modal with Form1.ShowModal and that resets the
ModalResult to mrNone.

> Put another way, is the original procedure supposed to spin pending the 
> modal result appearing, or is it supposed to return with subsequent 
> processing attached to one of the login form's event handlers (and if so 
> which one)?


More information about the Lazarus mailing list