Thanks for the tip. I just integrated the updateDisplayList code into my app and it works great! Sorry it took so long to reply but I had lost the thread.
Anyway, thanks again!
- Jaime
On 10/10/06, wayne_badu_johnson <[EMAIL PROTECTED]> wrote:
Hi Jamie
You may need to set the width/height of the textfield/ also check
the headerHeight has enough room to display wrapped title:
e.g.
package
{
import mx.containers.Panel;
public class CustomPanel extends Panel {
public function CustomPanel() {
super();
}
override protected function createChildren():void {
super.createChildren();
}
override protected function measure():void {
super.measure();
}
override protected function updateDisplayList
(unscaledWidth:Number,unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);
titleTextField.width = 120;
titleTextField.height = 50;
titleTextField.wordWrap = true;
}
}
}
Cheers
Wayne
--- In flexcoders@yahoogroups.com, "Jaime Bermudez"
<[EMAIL PROTECTED]> wrote:
>
> Hey Flexcoders,
>
> I need my Panel title's to handle wrapping, so I subclass the
Panel class
> and override the createChildren method where I set the wordWrap
property of
> the titleTextField to true (default is false). The first time I
view the
> Panel, I see no data. The data displays subsequently however.
Any ideas
> on how to implement this in a different way?
>
> Thanks,
>
> Jaime
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
__._,_.___
--
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 |
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___