如何設置工具提示的部分樣式,例如膽大?我在一個數據網格確定itemRenderer的生成工具提示,顯示列名,然後將該值:我想顯示粗體值...數據網格的itemrenderer的工具提示的內聯格式?
public override function set data(value:Object):void
{
var dg:DataGrid = this.listData.owner as DataGrid;
var dataField:String = (dg.columns[this.listData.columnIndex] as DataGridColumn).dataField;
var toolString:String = 「」;
for(var i:int = 0; i < dg.columns.length; i++)
{
var fieldName:String = (dg.columns[i] as DataGridColumn).dataField;
toolString = StringUtil.substitute("{0}{1}: {2}\n", toolString, fieldName, displayString(value[fieldName]));
}
this.toolTip = toolString;
super.data = value;
this.text = displayString(value[dataField]);
}
你可以設置http://help.adobe.com/en_US/FlashPlatform//reference/actionscript/3/mx/managers/ToolTipManager .html?allClasses = 1#toolTipClass而不是偵聽tooltipCreate,如果您想更改所有工具提示... – 2010-08-04 16:59:05