Alex Gnatko 0 Posted December 10, 2020 I've tried it both ways - with the control object as the left argument and with an IDC. lnbSetText works on the same column. But lnbSetTextRight does nothing. Are there any secret RscListNBox class properties that should be set in order for this to work? Share this post Link to post Share on other sites
Schatten 261 Posted December 11, 2020 @Alex Gnatko, I guess that you pass not string (e. g., number) to lnbSetTextRight. Anyway it's difficult to answer without any code. Can you provide it or even sample mission? Share this post Link to post Share on other sites
Alex Gnatko 0 Posted December 11, 2020 I do pass a string. The same piece of code works fine if I change lnbSetTextRight into lnbSetText. To replicate, just create a CT_LISTNBOX control, add a few columns, and try to make one of the columns display text aligned to the right side. Share this post Link to post Share on other sites
Alex Gnatko 0 Posted December 11, 2020 _control lnbAddRow ["", [_class, _value] call AG38_LIFE_ItemName, format["%1", _x select 1]]; _control lnbSetTextRight [[_forEachIndex, 0], "TEST"]; _control lnbSetTextRight [[_forEachIndex, 1], "TEST"]; _control lnbSetTextRight [[_forEachIndex, 2], "TEST"]; I create a row and then try to set the "TEST" text aligned to the right side. No effect. _control lnbSetText [[_forEachIndex, 0], "TEST"]; _control lnbSetText [[_forEachIndex, 1], "TEST"]; _control lnbSetText [[_forEachIndex, 2], "TEST"]; This works, I get "TEST" in every column. Aligned to the left side. Share this post Link to post Share on other sites
Schatten 261 Posted December 13, 2020 @Alex Gnatko, unfortunately, it doesn't work for me too. Seems it's a bug. Share this post Link to post Share on other sites
Larrow 2794 Posted December 14, 2020 Same, visually does not show, but it is being set as you can retrieve the text stored there. Spoiler h = [] spawn { _display = findDisplay 46; _control = _display ctrlCreate[ "RscListNBox", 1000 ]; _control ctrlSetPosition[ 0, 0, 1, 1 ]; _control lnbSetColor[ 1, 0, 0, 1 ]; _control lnbSetColumnsPos[ 0 ]; _control ctrlCommit 0; _row = _control lnbAddRow ["col1"]; _control lnbSetTextRight [[_row, 0], "TEST"]; hint format[ "TR: %1", _control lnbTextRight[ 0, 0 ] ]; }; Share this post Link to post Share on other sites
pierremgi 4737 Posted December 14, 2020 Just a little question: no more disableSerialization required when using local variables on displays/controls ? Share this post Link to post Share on other sites