Add to DEFAULT_MENU

I've been adding new MenuItems to display objects for some time (standard menu at the top right of the screen), but have not been able to extend the DEFAULT_MENU.  Screen adds a DEFAULT_MENU with a single entry, 'Farm', which is located in the lower left corner when the ESC key is pressed, but have not been able to find an example of how to add to the list to include my own menu items.  I use JDE 4.5.0.7.   -Brian

Override makeMenu(). When Screen.onMenu () is called, it creates a new Menu object and then calls makeMenu() to fill. You can even substitute directors makeMenu() and makeContextMenu() in the fields menu specific best separate object elements.

Tags: BlackBerry Developers

Similar Questions

  • Add MenuItem to a full screen

    Why the following work for screen...

    Showscreen MenuItem = new MenuItem ("Testscreen Show", 40, 40)
    {
    public void run()
    {
    pushScreen (testscreen);
    }
    };
    mainScreen.addMenuItem (showscreen);

    I want to add a narrow menu that closes the application, not the screen. But it does not work for the full screen.  It compiles, but no menu item appears, other than the default menu.

    Fullscreen is not an addMenuItem.  So I used getMenu and add for full screen.

    testscreen = new FullScreen (value, Screen.DEFAULT_MENU);

    Menu TestScreenMenu = testscreen.getMenu (0);
    CloseMenuItem MenuItem = new MenuItem ("close", 40, 40)
    {
    public void run()
    {
    System.Exit (0);
    }
    };
    TestScreenMenu.add (CloseMenuItem);

    JDE 4.7

    Hi JamesColeman,

    Sorry I missed the line that you wanted to close the application, not the screen.

    Yes, close the application, you need to override the onClose method as mantaker suggested.

    I think that your TestScreen class will be something like below:

    public class TestScreen  extends FullScreen
    {
        public TestScreen()
        {
            super(Screen.DEFAULT_MENU | FullScreen.DEFAULT_CLOSE);
    
            VerticalFieldManager vfm = new VerticalFieldManager();
            vfm.add(new LabelField("Test Label"));
    
            this.add(vfm);
        }
    
        public boolean onClose()
        {
            if (Dialog.ask(Dialog.D_YES_NO, "Exit Application?") == Dialog.YES)
            {
               System.exit(0);
            }
            return true;
        }
    }
    

    Concerning

    Bika

  • Addition of DEFAULT_MENU to anti-pop leads all buttonfields have DEFAULT_MENU

    It's weird!  At least it is to me.

    I added the MENU DEFAULTS to an anti-pop and each ButtonField on this screen now displays a MENU by DEFAULT when I click it.

    ButtonField testbutton = new ButtonField ("test");

    left a listener changes on purpose, for the test.  Other buttons use setChangeListener
    settingsvfm. Add (TestButton);

    settingsps = new PopupScreen (settingsvfm, Screen.DEFAULT_MENU);

    If I change this

    settingsps = new PopupScreen (settingsvfm);

    No DEFAULT_MENU on the buttons.

    Try to add the CONSUME_CLICK style to your buttonfields.

  • I have an ipod touch 128 GB... but I'm almost to reach its maximum.  I want to do is buy a new ipod touch 128 GB and add new music without synchronizing the entire library to it... I have 2 ipods in conjunction with other copies

    I have an ipod touch 128 GB... but I'm almost to reach its maximum.

    I want to do is buy a new ipod touch 128 GB and add new music without synchronizing the entire library to it... I have 2 ipods in conjunction with the other copies of the other.

    is this possible?

    What should I do?

    Matt

    When you get the new iPod, you can use iTunes on your computer to select and synchronize the music you want on it, in the same way that you synchronize your current iPod - your iTunes will recognize them as different devices and will remember your choice of synchronization for each, it will not (unless, for example, you restore the backup of your current on her iPod) put the same content on both.

    (I asked for your post be moved to the iPod Touch forum, where you have posted is the iPad forum use.)

  • The screen add people faces a (~ 1600) much just show as squares of white, grey

    Hello

    I was going through my photo library (running 2.0 on Sierra Photos) cleaning and marking of the people. I got far just about every face on the left is a square white, gray. If I add this person, the area where the image would be just rotates the circle of progress.

    Any idea on what is happening? I really miss the ability in iPhoto in order to have a Smart Album based on a photograph with a person "without name".

    Thank you, Tim

    That is a disused here bug that if you click on the x to remove a face, you end up with a tile empty - I hope that this will be fixed in a future Apple 9tell on the bug to improve its priority - http://www.apple.com/feedback/photos.html of output) and I hope that the patch will fix these old problems as well as properly - not advancing It is better to stop the removal of the faces until this problem is corrected

    LN

  • Add dictionary

    Hello.

    I have a question: I would like to add additional dictionaries in the Sierra of MacOS.

    Initially, some trouble with record find "dictionaries". But this problem is solved here: where is the dictionary in the Sierra folder

    After that, I saw:

    (It seems different from El Capitan).

    In the folder "CoreDataUbiquitySupport" can't get the files with the .dictionary extension.  And throughout the system (I used Spotlight) I cannot find these files.

    When I try to add my files with extension .dictionary in "Dictionaries" folder - nothing happened.

    Please, help me. What should I do?

    Thank you.

    I found the files .dictionary you are looking for here:

    / System/Library/assets/com_apple_MobileAsset_DictionaryServices_dictionaryOSX/37 7ca105ade0203e0c89af6538f7b8ab0204dfba.asset/AssetData/Oxford English.dictionary thesaurus

    / System/Library/assets/com_apple_MobileAsset_DictionaryServices_dictionaryOSX/5 has a689bfd471f943f70bd220ec2ed3849b7dbec3.asset/AssetData/Oxford Dictionary of English.dictionary

    / System/Library/assets/com_apple_MobileAsset_DictionaryServices_dictionaryOSX/f9 384c21fc7d64ad09992ad8bebbbfac16ad6a9d.asset/AssetData/Apple dictionary

  • can I still add to apple care if the warranty has expired?

    can I still add to apple care if the warranty has expired?

    No, if it is out of warranty, if it is for a Mac: http://www.apple.com/support/products/mac.html

    The AppleCare Protection Plan can be purchased as long as your Mac is still covered by the limited warranty of one year.

  • Add people

    So, I've updated for Mac OS Sierra. Have been using the Photos app since it was released and spent a lot of time organize using faces and now I have hundreds of photos to browse again and put names to people.

    I'm in add people and get 632 white picture with numbers under. To be able to identify the people, if I add them, and then double-click it to view more deep - no images do not face appear.

    I already went through and added all the images of virgins like that and then hidden, now, today, I have another more than 600 of them. Any ideas?

    I NSB Sierra since the evening he lauched and use my Mac every day for that if he should have had time to complete the analysis now.

    Thanks & Hello all

    but he has finished scanning and - when you launch Photos and click on people get you people or a text for scanning status?

    LN

  • "Add a printer" crashing

    Pref systems > Scan & print

    I can open the Scan & Print window under system preferences; However, when I click (+) to add a new printer, the Add Printer dialog box opens a second and quits immediately. This behavior started after I removed an existing printer.

    Does anyone know how can I fix?

    Reset did not help.

    Error log shows:

    Process: AddPrinter [406]

    Path: /System/Library/CoreServices/AddPrinter.app/Contents/MacOS/AddPrinter

    ID: com.apple.print.add

    Version: 8.3 (405.2)

    Generation information: PrintCenter-405002000000000 ~ 1

    Code type: X 86-64 (Native)

    Parent process: launchd [177]

    User ID: 501

    Date/time: 2016-10-05 16:30:40.801-0700

    OS version: Mac OS X 10.8.5 (12F2560)

    Report Version: 10

    Crashed thread: 0 dispatch queue: com.apple.main - wire

    Exception type: EXC_BAD_ACCESS (SIGSEGV)

    Exception codes: KERN_INVALID_ADDRESS at 0x000000010e05ca8f

    Reset the printing system

  • Why can't add sounds to mail to Sierra

    After the upgrade to Sierra, I would add is no longer a 'personal' sound of my files to act as my 'new message '. The sound folder is locked and I have, even as an administrator, can't unlock it or add sounds in the folder.  All I have now is a drop-down list of predetermined choice of Apple, and none of these things include the addition of new sounds.  Preference once gave me the choice to go to my files, I have more choice. Can someone tell me how to add my own sounds?

    MACBOOK PRO15.

    Intel core i7 to 2.7 GHz

    8 GB memory

    as it is in this matter and, of course MAC OS Sierra 10.12.

    Greetings gklav,

    Thank you for using communities of Apple Support. It seems that you want to use a custom sound in Mail when a new message arrives. I recommend reading this article, it explains how the feature works and what is available.

    New sound of messages

    The sound to play when you receive messages. To make a sound sampling, click on the context menu, and then select a sound.

    Mail for Mac: General preferences in Mail

    Take care.

  • When I add a playlist to my library, it automatically updated with new songs?

    Hello world

    When I add a playlist to my library, for example a list of music playback from Apple which is regularly updated by the editors ("Best of the Week" or 'Hits of today', for example), did the playlist in my library automatically update with new songs, when new songs are added?

    Thank you in advance.

    Hello, take a look at this article If you see not your entire library after you update iTunes on your Mac or PC - Apple Support

  • Tips to add a VPN router to my current network configuration

    Dear all

    My apologies if the answer to this question already exists, however, I searched in many situations and none seem to match what I'm after.

    I currently have an ISP modem/router in Bridge mode connected to a TC of Apple which is my wireless router, I have 2 Express airport connected to this acting as the extensors of the range.  I have a VPN service through the MyPrivate network I activate on the desired device when required and everything works fine.

    What I want to do now is to be able to use my AppleTV and burning Amazon via the VPN as well so you need to add a VPN router in the configuration.  I want to finish with 2 wireless networks running together for these devices who need VPN and those who are not.  I don't want to lose the opportunity to extend the network to express it however airport.

    If someone could explain to me if this is possible and if so how do I set up the network.

    Thanks in advance

    Mark

    Basically you would need a device that supports VPN-passthrough and VLANS for your goals of networking. MyPrivate network, seems to be a VPN SSL, which is a user-server configuration. In other words, you install a client VPN on your Mac and you connect to the VPN network MyPrivate server to establish a VPN tunnel.

    Networking two or more "separated", should be using a router that supports VLAN services. Each segment of VIRTUAL local area network, in essence, would be a separate, she either wired or wireless network or a combination of both. This would probably be the 'easiest' part for the installation program.

    Now how combining the two would be the question, and I don't know what would be the best way, or even if it is possible.

    A few thoughts:

    • Use a router that supports VLANS. Create at least two VIRTUAL LAN segments. One for Apple TV & Burns, one for Internet access in general. Connect the device to VPN client host on the first segment, and configure for Internet sharing.
    • Download a dedicated VPN network application that supports hosting of third-party VPN clients, like yours. You would still need a router that supports VLAN to provided separate network segments.
    • Hire a consultant network. Let them know what you the goals of networking and ask them to offer potential solutions.
  • How can I add a password to an existing network of the time capsule?

    How can I add a password to an existing network of the time capsule?

    I guess you mean that time Capsule has already been configured to provide a signal of wireless network, correct?

    Do you mean that the network has no password at all right now... or... do you mean that the network has an existing password, but you want to change the password?

    What operating system are you using on the iMac that you list in your profile?

  • The music won't add to my library of Apple's music

    Im trying to add songs to my library but when I search a song before and add it, it does not appear in my library even though it says it has added and whenever I press the cloud icon to download it, it keeps all loading and never actually starts to download?

    I can also create playlists, I can type in the name, insert a picture and add music, but when I click on done it just keeps loading

    Try these general steps. They could help.

    1 reset your iPhone by pressing and holding the sleep/wake and home buttons.

    2 disconnect you from your iCloud account and reconnect again.

  • When I press the button Add card on my phone app here is I get the error message

    Hi thanks, my cards have been on my iPhone 6plus for quite awhile. I recently bought an iwatch series 1. Watch and phone software is up to date. My app to watch on my phone recognizes my cards when I press the map button Add on my phone app here is I get the error message.

    Hello

    To be able to add cards to pay Apple on your watch, it will first the configuration of the area selected (like on your iPhone):

    • On your iPhone, in the application of the watch, go to: Watch My > general > language and region - check Format correct region is selected.
    • If they are already correct, it can help to select again the two the same Format of the region and also the language of the system itself.

    Then follow the instructions here to add cards to the Watch:

    More information:

    Pay help, add maps of Apple - Apple Support

Maybe you are looking for

  • Cannot read audio data. saysI Web site needs to update media player for Firefox.

    http://www.3AW.com.au/blogs/3AW-sport-blog/IPL-fixing-arrests-Taits-name-cleared/20130516-2jp58.html This is the Web page, I'm trying to listen to the audio file.

  • Fan goes crazy on newly installed 10.11.3

    Hello community, My late 2010 Macbook Air to the fan go crazy and temperature on the left side of the keyboard is hot! I did the reset of the SCM and PRAM but no difference... Machine has been freely reinstalled recently to remove all the old softwar

  • How to take advantage of deeply nested structures

    I'm relatively new to LabVIEW and I get in this situation: When tasks get complicated a bit more, my programs use many structures nested loop, case and structures of the sequence. Now, how we're out of nested structures quickly and cleanly? In a lang

  • Alienware 18 - need to upgrade help

    So, I recently discovered that you can now get a GTX 1080 specifications (however I have yet to find a retailer or a site that sells only the GPU). Any link to a Web site or a retailer would be nice. With such a high performance GPU I'll have a bette

  • Difference between JDE

    Hello What documentation saying "What's New" in jde between JDE? I need this because I want to migrate from 4.2.1 to 4.5 and I need a quick search again I can use and also I will migrate earlier than more quick to 4.7% and come back to the same quest