Can I customize distance of two items added by AddNL in one line?

General TRichView support forum. Please post your questions here
Post Reply
trz
Posts: 3
Joined: Fri May 01, 2020 12:33 pm

Can I customize distance of two items added by AddNL in one line?

Post by trz »

Hello,
TV.AddNL('aaa',1,-1);
TV.AddNL('bbb',1,-1);

the result is: aaabbb .
How can I get the result: aaa bbb ?

thank you very much.
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Can I customize distance of two items added by AddNL in one line?

Post by Sergey Tkachenko »

You can add a space character between them.
trz
Posts: 3
Joined: Fri May 01, 2020 12:33 pm

Re: Can I customize distance of two items added by AddNL in one line?

Post by trz »

yes, adding space char is simple solution. by some reason, I don't want space char in item, is there a other solution?
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Can I customize distance of two items added by AddNL in one line?

Post by Sergey Tkachenko »

Sorry, inserting something between text items is the only solution. In TRichView, additional spacing to the left/right sides of text is not supported.

(it is possible only when using label items instead of text)
trz
Posts: 3
Joined: Fri May 01, 2020 12:33 pm

Re: Can I customize distance of two items added by AddNL in one line?

Post by trz »

Thank you very much.
Post Reply