Forum

Notifications
Clear all

TQTXWindow general question

6 Posts
2 Users
0 Reactions
438 Views
(@hackbart)
Posts: 24
Trusted Member
Topic starter
 

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

 
Posted : 05/04/2023 9:45 am
(@hackbart)
Posts: 24
Trusted Member
Topic starter
 

I forgot to upload an example: 

https://www.dvbviewer.tv/privat/windowedtest.zip

 
Posted : 05/04/2023 10:00 am
(@hackbart)
Posts: 24
Trusted Member
Topic starter
 

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?

 
Posted : 05/04/2023 10:54 am
Jon Lennart Aasenden
(@tao4all)
Posts: 44
Member Admin
 

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 ??

 
Posted : 06/04/2023 8:11 am
(@hackbart)
Posts: 24
Trusted Member
Topic starter
 

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

 
Posted : 06/04/2023 9:51 am
(@hackbart)
Posts: 24
Trusted Member
Topic starter
 

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. 

 
Posted : 06/04/2023 3:11 pm
Share: