Hi,
i have two issues I am a bit unaware of. I want to create a windowed project and the first window is a login dialog box. The box should be centered in the middle and whenever it is visible all other frames should be disabled and the background turned dark. The login window not not be resizable or closable. To do so I set the options property to [] in InitializeObject. However the frame is still resizable and I can close it by clicking the responsible buttons. I would also like to put a panel on top with the description "<b>description</b><br>lorem Ipsum". This works like intend, but I also can not force the panel to stick on top and resize if necessary.
I am aware these questions are quite dumb.
Cheers
Christian
I forgot to upload an example:
I assume I have to do something like:
pnlDescription.Style.width:='100%';
This is fine, but isn't this mapped to the Width property in the designer?
I will answer more detailed later today, i am not at a computer atm.
In short, look at the window options. There you can remove sizing, zorder etc.
CenterOnParent() is a method of TQTXWidget too ?
Modal forms are coming, i have already figured out how we can do that ??
Thanks, this works. Do you eventually have any idea why the forms I added to the project are not shown, and only the first one is visible?
I have form1 and form2 in the forms folder and also in the unit of app.entrypoint.pas. Somehow a for var i:= 0 to Application.forms.Count-1 do
showmessage(application.forms[i].Name);
only lists the first form? Also if I rename form1.pas and form1.qfm to mainform.pas resp. mainform.qfm. They won't be used at all.
Christian
Okay, this was my bad. I figured out how to add a form by hand and how to use the Build Options. Sorry for the previous post.