DEV_THS Posted March 28, 2019 Share Posted March 28, 2019 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; Link to comment Share on other sites More sharing options...
Sherzod Posted March 28, 2019 Share Posted March 28, 2019 2 minutes ago, DEV_THS said: Hello, How do I change at runtime the caption of the form? Hello, I couldn't reproduce Can you make a simple testcase? Link to comment Share on other sites More sharing options...
DEV_THS Posted March 28, 2019 Author Share Posted March 28, 2019 14 minutes ago, Sherzod said: Hello, I couldn't reproduce Can you make a simple testcase? Yes of course! Exemplo.rar Link to comment Share on other sites More sharing options...
Sherzod Posted March 28, 2019 Share Posted March 28, 2019 Which build are you using?! Link to comment Share on other sites More sharing options...
DEV_THS Posted March 28, 2019 Author Share Posted March 28, 2019 34 minutes ago, Sherzod said: Which build are you using?! I'm testing in the Version:1.50.0 build 1482 Link to comment Share on other sites More sharing options...
Sherzod Posted March 28, 2019 Share Posted March 28, 2019 1 hour ago, DEV_THS said: I'm testing in the Version:1.50.0 build 1482 Which edition did you use before, trial? Link to comment Share on other sites More sharing options...
DEV_THS Posted March 28, 2019 Author Share Posted March 28, 2019 8 minutes ago, Sherzod said: Which edition did you use before, trial? Yes! Link to comment Share on other sites More sharing options...
Sherzod Posted March 28, 2019 Share Posted March 28, 2019 7 minutes ago, DEV_THS said: Yes! Seems you have reinstalled UniGUI incorrectly Link to comment Share on other sites More sharing options...
Sherzod Posted March 28, 2019 Share Posted March 28, 2019 Can you fully uninstall and install again? Link to comment Share on other sites More sharing options...
DEV_THS Posted March 28, 2019 Author Share Posted March 28, 2019 59 minutes ago, Sherzod said: Can you fully uninstall and install again? Yes of course! I will do that now. Link to comment Share on other sites More sharing options...
DEV_THS Posted March 28, 2019 Author Share Posted March 28, 2019 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? Link to comment Share on other sites More sharing options...
Sherzod Posted March 28, 2019 Share Posted March 28, 2019 Sorry, from where did you download? Seems you are installing a trial edition Link to comment Share on other sites More sharing options...
DEV_THS Posted March 28, 2019 Author Share Posted March 28, 2019 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 More sharing options...
Sherzod Posted March 28, 2019 Share Posted March 28, 2019 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 More sharing options...
DEV_THS Posted March 28, 2019 Author Share Posted March 28, 2019 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now