Results 1 to 3 of 3
  1.    #1  
    Hello everyone!

    I've started developing an app for the Palm Pre and I've noticed on the top left of the palm pre there is a drop down that has the title of the app and then a context menu like list once you click it. For some reason it doesn't show up on my app. I'm probabbly just missing something in the javascript.

    Thanks!
  2.    #2  
    I'm pretty sure that it is called an Application Menu now that I've looked through some stuff. But I still can't get it to show when I tap it.
  3. #3  
    Code:
    	//enable menu to get Preferences
    		this.appMenuModel = {
    		visible: true,
    		items: [
    			Mojo.Menu.editItem,
    			{ label: "Preferences...", command: 'do-myPrefs' },
        		{ label: "Help...", command: 'do-myHelp', disabled: true }
    		]
    	};
    	this.controller.setupWidget(Mojo.Menu.appMenu, {omitDefaultItems: true}, this.appMenuModel);
    Code:
    AddTaskAssistant.prototype.handleCommand = function (event) {
    	this.controller=Mojo.Controller.stageController.activeScene();
        if(event.type == Mojo.Event.command) {	
    		switch (event.command) {
    			// Push the Preferences scene to get userid, email, password
    			case 'do-myPrefs':
    				this.controller.stageController.pushScene('preferences');
    				break;	
    			default:
    				break;
    		}
    	}
    }
    You may want to take a look at the SDK API documentation on Menus:

    Palm Mojo Framework - Mojo.Menu

Tags for this Thread

Posting Permissions