Every programming language does it a bit different. Every programming language supports it somehow. Talking about "carriage return" + "linefeed". Especially in a multi language environment like FLEX (FLEX + Actionscript + Coldfusion | JAVA | .NET) it can easily happen that language constructs get mixed up. Yet it is important to break lines in column headers, alerts, labels, and so on.

For example in Flex MXML;
<mx:DataGridColumn
columnName="name_of_col1"
headerText="this is a{newline}multiline{newline}header"
textAlign="center"
width="60" />
For example in Actionscript 2.0;
mx.controls.Alert.show(
"Error Code: 1234 \n" +
"Error origin: myComponent \n" +
"Timestamp: 12:34:45-15:55:01 \n" +
"Logged: yes");
The simple example is pretty self explanatory. Just download the zip file and execute multi_line_header.mxml somewhere under your FLEX Server.
josef
Posted by josef at 11:19 AM | Permalink
Trackback: http://blog.daemon.com.au/cgi-bin/dmblog/mt-tb.cgi/288

