Just noticed slight problem (one more to the long list of problems) with Table Box. I'm trying to add fairly long string to Table Box and because Table Box doesn't really support multiple lines I tried using Col Box with Table Box(<< Set Wrap())... issue with this is that it seems to break everything else
Names Default To Here(1);
tb = Table Box(
nceb = Number Col Edit Box("Order", []),
scb1 = String Col Box("103width", {}),
cb = Col Box("longstring", {}),
scb2 = String Col Box("104width", {}),
);
nceb << Set Width(40);
scb1 << Set Width(103);
scb2 << Set Width(104);
New window("",
tb
);
textb = Text Box("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADDD", << Set Wrap(150));
long_str = "speciallylongname";
Eval(EvalExpr(
tb << Add Row({1, Expr(long_str), Expr(textb), Expr(long_str)});
));

Seems like 103width is being wrapped and only second line is being show.
Does anyone have any good ideas how I could handle this? These three come to my mind quickly:
- Do I have to only use Col Boxes with Text Boxes and just accept that I can't let users select rows in Table Box as easily as I would like to?
- Do I have to write my custom class for new display box element (as in give up with Table Boxes)
- Create hidden columns with full text and then calculate max width I can show in String Col Boxes and only show those.