rgreat Posted April 15, 2020 Posted April 15, 2020 Caption:='this is first line<br>this is second line'; Caption:='this is first line'#13#10'this is second line'; Both approaches do not work. Quote
Sherzod Posted April 15, 2020 Posted April 15, 2020 19 minutes ago, rgreat said: Both approaches do not work. Why do you need this? One possible solution I think: procedure TMainForm.UniFormReady(Sender: TObject); begin with UniPanel1 do begin Caption := 'this is first line<br>this is second line'; JSInterface.JSCode('Ext.get('#1'.id+"_td").setHtml("'+ Caption +'");'); end; end; 1 Quote
rgreat Posted April 15, 2020 Author Posted April 15, 2020 I need multiline caption to be positioned strictly by design. Automatic word wrapping is done on wrong world. I need <br> after comma here: Below task is done by using TWO TUniLabels, which cause problems when i modify font size. Quote
rgreat Posted April 15, 2020 Author Posted April 15, 2020 22 minutes ago, Sherzod said: Why do you need this? One possible solution I think: procedure TMainForm.UniFormReady(Sender: TObject); begin with UniPanel1 do begin Caption := 'this is first line<br>this is second line'; JSInterface.JSCode('Ext.get('#1'.id+"_td").setHtml("'+ Caption +'");'); end; end; UniPanel1.JSInterface.JSCode('Ext.get('#1'.id+"_td").setHtml("'+UniPanel1.Caption+'");'); Error: Cannot read property 'setHtml' of null Quote
Sherzod Posted April 15, 2020 Posted April 15, 2020 2 minutes ago, rgreat said: Error: Cannot read property 'setHtml' of null Where do you use this code? 1 Quote
rgreat Posted April 15, 2020 Author Posted April 15, 2020 UniFormCreate Moved to UniFormShow and it's work. Thank you! 1 Quote
Sherzod Posted April 15, 2020 Posted April 15, 2020 27 minutes ago, Sherzod said: procedure TMainForm.UniFormReady(Sender: TObject); Quote
Grahasoftware Dev Posted August 9, 2024 Posted August 9, 2024 So, where the running text procedure is? Quote
Sherzod Posted August 11, 2024 Posted August 11, 2024 On 8/9/2024 at 11:51 PM, Grahasoftware Dev said: So, where the running text procedure is? Hello, The solution is given above in this post. And please specify which edition and build of uniGUI are you using? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.