[Lazarus] Bug 15390 and Showmodal

Hans-Peter Diettrich DrDiettrich1 at aol.com
Wed Apr 18 12:53:16 CEST 2012


patspiper schrieb:

>> No, FormClose() isn't called when modal form is hidden via Hide();
>>
> Correct
>>
>> , so form still exists and it can be called with ShowModal() or Show() 
>> again.
>>
> I beg to differ here as Showmodal should not exit unless the modal form 
> is closed.

A modal form (dialog) can be used to accept multiple user entries 
(filename...). Then the form object must stay alife until the 
application has read all entries. That's why a modal form only hides 
itself on exit.

DoDi





More information about the Lazarus mailing list