<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
</head>
<body>
<p style="margin: 0pt;">
<span>
<span></span>
</span>
</p>
<p style="margin: 0px; "></p>
<div style="margin: 5px 0px;">
<br/>
Andreas Schneider <aksdb@gmx.de> hat am 17. Januar 2012 um 11:23 geschrieben:
<br/>
<br/>
> On Sunday, January 15, 2012, at 15:04 Mattias Gaertner wrote:
<br/>
> > On Sun, 15 Jan 2012 05:58:21 -0800 (PST)
<br/>
> > Malvin <malvinvnv@gmail.com> wrote:
<br/>
>
<br/>
> >> So far i've managed to do the program quite well, and I was wondering, can
<br/>
> >> i close the main form (form1) whils opening form2 and not closing the app?
<br/>
> >> Is there any way that I can do it?
<br/>
>
<br/>
> > If you mean LCL forms: The MainForm can not be closed, but you can hide
<br/>
> > it.
<br/>
>
<br/>
> But you can trick the LCL into changing what Form is considered to be
<br/>
> the MainForm.
<br/>
>
<br/>
> Btw. is there any chance for having an official way to do this? i.e.
<br/>
> making TApplication.MainForm a writable property? (I ask this here
<br/>
> instead of opening a ticket because I suspect there's a good reason
<br/>
> why this isn't available yet, which you will tell me now. :-))
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">No one needed it yet.</p>
<p style="margin: 0px;">The MainForm contains the default main menu and its handle is used as default handle. All widgetsets must be checked. </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Mattias</p>
<p style="margin: 0px;"> </p>
</body>
</html>