一个想法(an idea)

 From:  Michael Gibson
12027.2 In reply to 12027.1 
Hi SUIYAN,

It is possible to set the title="" property on command buttons with script like this:

code:
function SetButtonTitle( button )
{
	button.title = 'the title';
}

var panels = moi.ui.getUIPanels();

for ( var i = 0; i < panels.length; ++i )
{
	var panel = panels.item(i);
	var buttons = panel.document.getElementsByTagName( 'moi:CommandButton' );

	for ( var j = 0; j < buttons.length; ++j )
		SetButtonTitle( buttons[j] );
}


But the part that may be tricky is that any buttons on popup menus, dialog windows, or command sets will only be accessible after the menu/dialog/whatever is displayed.

- Michael