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

Tags: BlackBerry Developers

Similar Questions

  • Add the full screen tool bar

    Hello

    JDE - 6.0

    device - torch

    I have a screen and two FullScreen in my application.

    I learned that we cannot add a toolbar for full screen, as there is no function like setToolbar (toolbarManager) which is available for a screen. (is it possible to add a toolbar to a full screen?)

    When I changed the full screen for screen, then I was able to add a toolbar.

    But I do not want the default options of the system menu, which is part of the class of the screen. How to avoid the system menu in a screen?

    Hi peter,.

    Thanks for the suggestion.

    I tried the override of the method "makeMenu", he created a menu without items. He created an empty menu (when I put the NO_SYSTEM_MENU_ITEMS style bit).

    Then I tried the override of the method "onMenu. and I returned false from this overridden method. now, the menu is not yet complete.

    Thank you

  • Scrolling past slideshows full screen

    Hello

    Is it possible to add a slide show full-screen upward to a site style totem? For the moment, it's the only thing visible when I add it to my home page. I guess that's the only option right now? Many sites use a similar feature, but you can scroll ahead of them in the rest of the content: http://urbaninfluence.com/

    Please tell me the exact section of the page that you are not able to achieve, the site you provided is feasible with Muse, you need only to use the slideshow accordingly and add content below the slideshow with scrolling movement applied.

    You can visit these sites that are created with similar Muse on the site you referred:

    http://ahgf.de/

    http://bizontine.com/Roadtrip/

    http://n90media.de/

    http://pjstahl.com/

    The video link I posted in my previous answer includes the same steps in designing a site like the one you mentioned.

    Thank you

    Sanjit

  • Uninstall full screen add on

    I installed the mode full screen add on and I want to stop using the new Firefox uninstall ideally so please be detailed as possible thank you

    Hey there,

    What you want to do is inside Firefox access to the browser menu by pressing your menu button, or by touching the menu dotted (3 points) in the upper right of the browser and select 'Modules' go in the Add-ons Manager.

    You can then tap to select full screen, and you will see the "Uninstall" button to remove the add-on.

    Let us know if that works for you,

  • How to add clickcount ominiture in a gallery full screen

    I must add a clickcount in a gallery full screen

    You can try these:

    http://rtfm.MODx.com/extras/Revo/hitspage

    http://StackOverflow.com/questions/27750355/image-gallery-item-counting

    Thank you

    Sanjit

  • Add the "View full screen" button of the Fusion 7.1.0 toolbar?

    VMware Fusion 7.1.0 display-> customize toolbar allows you to add/remove the button "Enter unity" on the Fusion toolbar. Why not also offer a ' display full screen ' button the Fusion toolbar?

    I'd swear that previous versions of Fusion has provided such a button. Online help documentation speaks of a "full screen button in the menu bar of Fusion' in previous versions, but does not exist in my Fusion 7.1.0 toolbar. It is quite a chore, because I continue to click the one that exists in the standard windows location / maximize traditional (top right), and it is the button "Enter unity" - and that's not what I want to see!

    Thank you

    -david-

    I do not regularly use Yosemite, but if I remember correctly the green button at the top left of the window has been changed to behave like the button fullscreen double-arrow has done throughout the OS X.  Try this one!

    See you soon,.

    --

    Darius

  • How can I add 'Volume control' button and 'full screen' skin to read?

    I'm working on the CP5. I would like to add my .swf file playback control bar. But in the skins of CP, I can't find the "Volume control" and the button "full screen". So how to solve this problem? Thank you very much.

    Welcome to our community

    Sorry, but Captivate has never offered Thos options. At least not as options of the PlayBar. Captivate is offers an option for full screen, but you should choose at the time wherever you post your output.

    If you want a Volume control, Captivate 5 offers a Volume control widget, that you can insert into the project.

    See you soon... Rick

    Useful and practical links

    Begin to learn Captivate 5 times now! $29.95

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcererStone blog

    Captivate eBooks

  • The add on bar is missing, while in full screen

    If NOT in full screen and then the announcement on bar is visible. Note that adding on bar is checked in both cases. I tried uncheching check again, but this does not solve the pb. Thanks for your help, it's really annoying.

    Mode full screen mode toolbar all are hidden and only the toolbar and tab bar Navigation bar will appear if you move the mouse to the top.

    You can watch the Autohide extension to choose what bars to display full-screen mode.

  • I need to remove "minimize, maximize, close" buttons on the mode full screen

    I can remove all the buttons (like refresh, back, forward, address bar, etc.), but the small right 3 "minimize, maximize, close" buttons I can't delete, how can I do it with userChrome.css or another option.
    Because I can close firefox out of the full screen and clicking on the menu of archive with the ' Alt ' key.
    I don't want this small 3 buttons, I can hide and show permanent.

    I hope to explain correctly
    Thank you very much

    Add code to userChrome.css below default @namespace.

    ---

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    #autohide-context { display:none!important; } /* hide context menuitem "Exit Full Screen Mode" */
    #window-controls  { display:none!important; } /* hide window controls in full screen mode */
    
  • Keep the bar from the top hidden in full screen, even when said on

    When you are in full screen view and you press the cursor of the mouse to the top of the screen, you will see the top bar.

    Is there a way to do not do? (You will then need to press F11 to get out)

    Add code to the file userChrome.css below default @namespace.

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    #fullscr-toggler { display:none!important; }
    

    The file userChrome.css (UI) customization and userContent.css (Web sites) are located in the folder of chrome in the Firefox profile folder.

    You can use this button to go to the current Firefox profile folder:

    • Create the folder chrome (lowercase) in the .default < xxxxxxxx > profile folder if the folder does not exist
    • Use a text editor like Notepad to create a userChrome.css (new) file in the folder chrome (file name is case sensitive)
    • Paste the code in the userChrome.css file in the Editor window
    • Make sure that the userChrome.css file starts with the default @namespace line
    • Make sure that you select "All files" and not "text files" when you save the file via "save file as" in the text editor as userChrome.css.
      Otherwise, Windows can add a hidden .txt file extension and you end up with one does not not userChrome.css.txt file
  • Under Win 10 Pro, updated to v40.0; "Minimize full screen &amp; Exit" buttons don't work. Re - download and re - install did not set; decommissioning of v39.0.3 fixed?

    Windows Pro 10. Update Firefox to v40.0. At the top, buttons full screen and the exit on the right, minimize it, didn't work and hovering on any of them could not highlight the button. I have re-downloaded the update and re-installed, but the problem still exists. As a test, I tried downgraded to v39.0.3, which fixed the problem. I realize that the downgrade may pose a security risk, but it works, and not v40.0! Prior to decommissioning, I tried the customization option, out, re - click on the menu bar, but neither helped. What to do next?

    BOBHAKES said

    In addition to troubleshooting: I opened v40.0 Firefox in safe mode, and the problem occurred is no longer. Then restarted, open Firefox v40.0, using the option "Refresh", and the problem occurred is no longer. After add desired Plug-Ins and Extensions (eliminating some older or infrequently used items), I restarted Firefox, and the problem no longer occurs. Obviously, the problem was caused by one of the extensions eliminated or plug-ins. No other assistance needed.

  • My theme is only show at the top of the screen. I hope for an image full screen. Can help you.

    Hello friends, I was hoping that the theme I've selected would fill the full screen. Is it possible to do so. Thank you

    Do you mean that you'd have your picture full screen on every web page? Or only on tabs/windows empty (when you open a new tab for example)?

    In the second case, consider using an add-on like Browser Backgrounds.

  • Firefox opens in full screen and I can't do anything at all except Ctrl-alt-delete and closing of Firefox!

    Hello. I made a stupid mistake and installed an add-on or extension (do not know which) that I was hoping would allow me to display YouTube videos in full screen. Unfortunately I don't remember the name of the add-on/extension.

    The problem is, now everytime I open Firefox, it opens in the mode "full screen" and ANYTHING (including F11) will allow me to access the taskbar, the address bar or an other controls Firefox. I can nothing at all, but display the homepage fullscreen! The only option I have is to hit CTRL-alt-del and close Firefox.

    I tried to uninstall and reinstall Firefox and this does not solve the problem. Help, please. Thank you!

    P.S. I write this in Internet Explorer as I can't currently use Firefox.

    Try to rename (or delete) the file xulstore.json in the Firefox profile folder.

    You can check if you can start Firefox in Safe Mode by holding down the shift/Options key.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • the toolbar disappears after videos in full screen

    I use FirefoxDeveloperEdition 40.0a2, with OSX 10.10.3.
    After that I put a youtube video in full screen and then return to the normal view, the toolbar (bookmarks) disappeared. Everything is always resolved the way it's supposed to (display the toolbar and so on). After that I restarted firefox everything is back to normal. I removed all disabled all addons, but it has not changed anything. Any ideas how to solve this problem?

    First of all, I must add that if I open a new window, the toolbar is displayed in this window, not in the old. If a reboot is not necessary after all.

    Of course, I tried to set the toolbar to display again. But as I said in my post, all options are always set on the view toolbar, it is not just seen.

    I have updated all the plugins, one at a time and tried again.
    The problem is still there.

    I managed to circumvent the problem. As far as I can tell the problem occurs only on the youtube page, using the HTML5 player. YouTubeFlashPlayer an extension that forces youtube use Flash Player instead of HTML5, I installed a. This fixes the problem.

  • Stop menu bar to appear while in an application full screen.

    I am running 10.11.5.

    Does anyone know how to stop the menu bar from appearing when, in an application that runs full screen? If I move my mouse to the top of the screen, it raises the bar of drop-down menus and become visible in the application.

    This completely defeated the point of run the application in full-screen, as it is impossible to access anything whatsoever to the top of the screen without accidentally trigger it.  Thank you.

    No, this is not possible. But if you add a second monitor to your iMac, you can be "menubarless".

Maybe you are looking for