Monday, February 14, 2011

Lables with linebreaks

I found an interesting comment for Box example as below from one of the blog.

Labels can contain line breaks. For example, “Text1\nText2” (let it has ID @LBL1).

However, if you’ll try to display this label “as is”, the result will be not expected:
Box::info("@LBL1");
Gives







To get the expected message with line break strFmtLB() method should be used:
Box::info(strFmtLB("@LBL1"));
Gives 








/Ashlesh

No comments:

Post a Comment