PDA

View Full Version : Hiding a SystemMenu item in adobe air



phpserver
16 Feb 2011, 1:51 AM
I am trying to modify the tasks air application and i am wondering if i can be able to hide the import menu item.


var menus = Ext.air.SystemMenu;

menus.add('File', [
actions.newTask,
actions.newList,
actions.newFolder,
'-',{
text:'Import...',
handler: function(){
var importer = new tx.Importer();
importer.doImport(function(){
tx.data.lists.load();
root.reload();
loadList('root');
Ext.Msg.hide();
});
}
},{
text:'Export...',
handler: function(){
new tx.Exporter();
}
},
'-',
actions.quit
]);