Jump to content
CheezyCake

Line break or multiline style for RscListBox

Recommended Posts

Someone knows how I can insert text in lbAdd so that it appears in several lines if necessary.

I do not need to copy all the secret features of the BIS Inventory Dialog. Just a line break for ListBox items.

Tried composeText and parseText for RscListNBox. Unsuccessfully. Need help! 🙏

 

5noi7SA.png

Share this post


Link to post
Share on other sites

That's a hard one. I have been trying several things to get a linebreak in a listbox but nothing worked so far. These are the commands I tried:

_list lbAdd format ["line1%1line2", linebreak]; // endl, toString[10], "<br/>", "\n"

I then took a look at how arma does it. Turns out that the "linebreak" you can see in the picture above is only happening if the entry has a too long text. The thing is that I couldn't even reproduce that effect. Even after copying the relevant configs it wasn't so I guess it is engine related (aka Arma magic).

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×