Page 1 of 1

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

Posted: Fri May 01, 2020 2:18 pm
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.

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

Posted: Fri May 01, 2020 5:36 pm
by Sergey Tkachenko
You can add a space character between them.

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

Posted: Sat May 02, 2020 4:05 am
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?

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

Posted: Sat May 02, 2020 7:51 am
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)

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

Posted: Sun May 03, 2020 11:27 am
by trz
Thank you very much.