would this work?


<mx:Label x="0" y="0" height="45" width="160">
<mx:htmlText><![CDATA[This is a &#13; line break.]]></mx:htmlText>
</mx:Label>

&#13; is a mxml line break


On Aug 16, 2006, at 9:19 PM, Barry Beattie wrote:

this *should* be easy. In HTML it'd just be a colspan....anyhoo...

I've got a datagrid headerRenderer that should have the layout

...... Email Notifications .....

... Initial ...... | ..... Reminder
Notifications . | ......... Date

(the cells underneath will be custom itemRenderers I'm esentially
having 2 columns with a common parent header)

I just can't get the text to wrap. there's "truncate to fit" but no
wrap. any ideas?

<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="150">
<mx:Label text="Email Notifications" textAlign="center"/>
<mx:HBox height="35" >
<mx:Label text="Initial Notifications" textAlign="center" />
<mx:Label text="Reminder Date" textAlign="center"/>
</mx:HBox>
</mx:VBox>

thanx
barry.b

==========================================

ALSO: I'm lost as to why I need to do this:

I can define custom components with a namespace (OK so far)
<mx:Application ...
xmlns:my="custom_controls.*"
>
<my:ComboBox dataProvider="{colRole}" y="100"></my:ComboBox>

but I can't use that namespace for a datagrid headerRenderer control.
- this works:
<mx:DataGridColumn headerRenderer="custom_controls.NewLabel" />
- this doesn't
<mx:DataGridColumn headerRenderer="my.NewLabel" />

can I ask why I can't use a namespace for all my custom stuff?
thanx
b


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to