Hello,

thats not that easy like in the case of a label because the header cell is
created by a factory (header cell renderer). So you would need to subclass
the default header cell renderer (qx.ui.table.headerrenderer.Default) and
re-implement createHeaderCell. The code could look something like this (NOT
TESTED!) :

createHeaderCell : function(cellInfo) {
  var widget = this.base(arguments, cellInfo);
 
widget.getChildcontrol("label").getContentElement().setStyle("text-shadow",
"red 3px 2px");
  return widget;
}

That is the main idea how you can get that working.
Best,
Martin


skar wrote:
> 
> Hi Martin,
>> Hi,
>>
>> the font itself is not capable of such a task. But you can always set no
>> matter what css stype on the labels content element. But be careful with
>> the
>> usage of those css settings. It may break some of the qooxdoo internals!
>> But
>> the text-shadow should not be a problem (see the following snippet): 
>>
>> var l = new qx.ui.basic.Label("TEST");
>> this.getRoot().add(l);
>> l.getContentElement().setStyle("text-shadow", "red 3px 2px");
>>   
> 
> Thanks, that worked great. Any idea on how to get the content element 
> for a table's header labels?
> 
> cheers,
> skar.
> 
> -- 
> --
> The life so short, the craft so long to learn. 
> 
> 
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/setting-font-with-text-shadow-tp4162915p4163768.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to