[lazarus] new forms.pp
Sergio A. Kessler
sak at perio.unlp.edu.ar
Tue May 18 18:11:54 EDT 1999
Sergio Kessler <sak at perio.unlp.edu.ar> el día Tue, 18 May 1999 11:01:29
-0300, escribió:
>Shane Miller wrote:
>>
>> >>in compileroptions.pp I've changed this
>>
>> >>procedure TForm1.mnuViewCompilerSettingsClicked;
>> >>begin
>> >> fmCompilerOptions := TfmCompilerOptions.Create( self);
>> >> fmCompilerOptions.Caption := 'Compiler Options2';
>> >> fmCompilerOptions.Show;
>> >> fmCompilerOptions.Destroy; // should be release, not destroy
>> >>end;
>>
>> How does that work? The show is not a "modal" show so once it's shown it
goes to the destroy line right away and is destroyed....
>
>Oops, I don't know, but is working here...
>I can even play with the form, so I don't think is destroyed
>after show :)
well, is easy, Destroy doesn't destroy the widget :)
Sergio
More information about the Lazarus
mailing list