Jump to content

Form change Caption on Form Show Event ?


DEV_THS

Recommended Posts

Hello, How do I change at runtime the caption of the form?

Already tried:

procedure TUniForm1.UniBitBtn1Click (Sender: TObject);
begin
   Self.Caption: = 'New Title'; //Nothing happens!
end;

I tried this way too:

procedure TUniForm1.UniBitBtn1Click (Sender: TObject);
begin
   Self.WebForm.JSControl.JSCode ('document.title = "New Title";');
//Nothing happens.
end;

procedure TUniForm1.UniBitBtn1Click (Sender: TObject);
begin
   Self.UniSession.AddJS ('document.getElementById ("' +
     Self.WebForm.JSControl.Id + '"). TextContent =" New Title ";');
   // It works, but does not change only the caption, my form is lost.

end;

1.JPG

2.JPG

Link to comment
Share on other sites

15 minutes ago, DEV_THS said:

Yes of course! I will do that now.

Sherzod, I completely removed it, and downloaded the new version available, did the same test, and got the same problem!

What command do you use to change the caption of the form at runtime?

 

image.png.3d0c33bad8d62b1414e1a0e4c955e59b.png

Link to comment
Share on other sites

8 minutes ago, Sherzod said:

Sorry, from where did you download?

Seems you are installing a trial edition  

Yes, I downloaded it from the site of yourselves,
I tried to make it work on our version, and it did not work, so I decided to test it in the trial version.

but it's the same thing ...

Link to comment
Share on other sites

12 minutes ago, DEV_THS said:

so I decided to test it in the trial version.

It is a trial edition limitation!

Compared with regular edition Trial edition has some limitations which are listed below:

64-Bit DCUs are not included.
Sessions are limited to a certain timeout around 5 minutes and will be forcefully terminated after timeout.
Random nag message when a session starts.
Form captions can not be changed
IDE designers and compiled applications expire when a certain date arrives.
Stress Test Tool and other utilities are not included.
Other limitations.
Beside above limitations trial version is fully functional and will help you to get a complete idea about all framework features.

 

Please download your edition of UniGUI from the portal

Link to comment
Share on other sites

14 minutes ago, Sherzod said:

It is a trial edition limitation!

Compared with regular edition Trial edition has some limitations which are listed below:

64-Bit DCUs are not included.
Sessions are limited to a certain timeout around 5 minutes and will be forcefully terminated after timeout.
Random nag message when a session starts.
Form captions can not be changed
IDE designers and compiled applications expire when a certain date arrives.
Stress Test Tool and other utilities are not included.
Other limitations.
Beside above limitations trial version is fully functional and will help you to get a complete idea about all framework features.

 

Please download your edition of UniGUI from the portal

Sherzod, I'm sorry, I did not pay attention to these versions in the trial version ...

I'm going to test again, this time in our version that was acquired ...

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...