arButtons['FontName'] =
['BXEdList',
{
field_size: 75,
title: '('+BX_MESS.Font+')',
disableOnCodeView: true,
values:
[
{value: 'Times New Roman', name: 'Times New Roman'},
{value: 'Courier', name: 'Courier'},
{value: 'Arial', name: 'Arial'},
{value: 'Tahoma', name: 'Tahoma'},
{value: 'Verdana', name: 'Verdana'},
{value: 'Georgia', name: 'Georgia'},
],
OnSelectionChange: function (){
this.SelectByVal(this.pMainObj.queryCommand('FontName'));
},
OnChange: function (selected){this.pMainObj.executeCommand('FontName', selected['value']);},
//text-overflow : ellipsis;
OnDrawItem: function (item){return '<span style="white-space: nowrap; font-family:'+item['name']+';font-size: 10pt;">'+item['name']+'</span>';}
}
]; |