Excellent! This is going to get me most of the way there. I tested it and it
no longer is showing the <br> like it did before, but I don't see two lines
so I am going to adjust the font size and the height of the header until I
get the perfect combination.

Thanks again for your assistance!

Jim


On Fri, Dec 5, 2008 at 4:15 PM, Derrell Lipman <
[EMAIL PROTECTED]> wrote:

> On Fri, Dec 5, 2008 at 5:44 PM, Jim Hunter <[EMAIL PROTECTED]> wrote:
>
>> I have been trying for the last couple of hours to set the table column
>> headers to be Rich text not plain (need to support <br> to allow multiple
>> line headers) but am coming up blank. Can someone point me in the right
>> direction?
>
>
> More classes instantiated by classes instantiated by classes with no easy
> way to access the classes deep in the hierarchy.  Yuck.
>
> I think the easiest way to do it will be to create a mixin that adds this
> member method:
>
>     _createChildControlImpl : function(id)
>     {
>       var control;
>
>       switch(id)
>       {
>         case "label":
>           control = new qx.ui.basic.Label(this.getLabel()).set({
>             anonymous: true,
>             allowShrinkX: true,
>             rich: true // THIS SHOULD BE WHAT YOU NEED
>           });
>
>           this._add(control, {row: 0, column: 1});
>           break;
>
>         case "sort-icon":
>           control = new qx.ui.basic.Image(this.getSortIcon());
>           control.setAnonymous(true);
>           this._add(control, {row: 0, column: 2});
>           break;
>
>         case "icon":
>           control = new qx.ui.basic.Image(this.getIcon()).set({
>             anonymous: true,
>             allowShrinkX: true
>           });
>           this._add(control, {row: 0, column: 0});
>           break;
>       }
>
>       return control || this.base(arguments, id);
>     }
>   }
>
> Then patch qx.ui.table.headerrenderer.HeaderCell with this replacement
> method.  Note you'll have to use patch, not include, since you're modifying
> an existing method.  Also note that this will be a global replacement, so
> all header cells will have rich labels.
>
> Derrell
>
>
>
>
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you.  Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
>
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to