Results 1 to 2 of 2
  1.    #1  
    I've abandonded this idea myself, but I thought it might be usefull for others out there.

    Like the Edit sub menu that drops down in the Application Menu to show the cut/copy/paste options, here is the code needed to get the same for your own app menu.

    This code isn't my own, per se. I was playing with the commas, braces and such trying to get it to work when Aptana suddenly formatted it all for me.

    Code:
    // SETTING UP THE MENU WITH A CUSTOM SUB MENU
    	 this.controller.setupWidget(Mojo.Menu.appMenu,
        	{ omitDefaultItems: true },
        	{ visible: true,
        	  items: [ {label: "About", command: 'doAbout' },
    
    	  	{label: "Default Number",
    			visible: true,
    			items: [{
    				label: "1",
    				command: 'default1'
    			}, {
    				label: "2",
    				command: 'default2'
    			}, {
    				label: "3",
    				command: 'default3'
    			}, ]
    		}
    
    	  ]});
    Handling it is your job.
  2. #2  
    careful with posting copyrighted palm code...
    MatterOfFactJack

Posting Permissions