Creating a menu close to avoid the garbage alert 'Changes' thing: P

First, I searched and saw solutions for setDirty (false) or to replace the examples in onSavePrompt (true), however I am having some problems with this integration into my existing code.

My class is extending to a different module screen (what is the problem?) and I am the makeMenu element substitution to fill my menu.

What I'm asking is for the ability to hide the beast 'changes' invites the box, as shown in my element menu to close. What is my Code for the moment

Here is a snippet of my code...

public final class fgw_home_screen extends TooltipScreen implements TooltipListener, TxtPackResource {

    public fgw_home_screen() {

        //create a menu item for users to close the application
        private MenuItem _closeItem = new MenuItem(_txt.getString(BTN_CLOSE), 200000, 10) {
                public void run()
                {
                    onClose();

                }
        }; 

        //override makeMenu to add the new menu items
        protected void makeMenu( Menu menu, int instance )
        {
                menu.add(_closeItem);
        }
}
private MenuItem _closeItem = new MenuItem("Close", 200000, 10) {
   public void run() {
       close();
   }
};        

public boolean onClose() {
  return super.onClose();
}

public boolean onSavePrompt() { return true; }

It works for me

Tags: BlackBerry Developers

Similar Questions

  • Create a menu accordion that pushes the content down?

    Okay, so I am what some new Muse and I am working on a site that requires me to have several sensitive pages.

    So I want to create a menu Burger in the left corner of the header when you click on in her pushes her contented below him down not just open on the top.

    Now, I had this ins the past when tested the menu when scratch starts out but now I can't re - pro wanted this result?

    What I am I missing here are my steps

    1. on a blank page for testing, I create a black bg header 960 x 200

    2 drop an Accordion widget on the page (by emptying all the contents and styles)

    3. move a vertical menu on the page in the lower area accordion

    4 - Position the accordion in the black box in the header that I drew

    5 - test it and the menu opens but does not push only the lower content down, it opens on the top.

    Any ideas or a video tutorial that I can check?

    Thank you

    B

    use the widget base of Muse

    and put a tick in the box to overlay

    example page = example widget

    the two have left ticks so they more | under the knees and the right pushes down

  • How to create a menu of actions on the upper right of an application

    Hi, I found this link on the creation of a menu action on the lower left corner of the screen. But is there a way that I can do this on the upper right? Thank you.

    http://developer.BlackBerry.com/Cascades/reference/bb__cascades__application.html

    Mobile version doesn't have the option edit... Sorry about that.

  • Developer SQL 4.0 Early Adopter 2 - avoid the message "Please change your code to something like this."

    When I edit the PL/SQL packages or sql queries in SQL Developer 4.0 2 early adopter,.

    When copying and pasting the SQL code, sometimes "Please change your code to something like this: ' select * when", or "start when;" end; "is displayed.

    Sometimes the SQL Developer freezes.

    Can I avoid this message (disable some type of controls in the properties of the SQL Developer)?

    This has been triggered/documented fixed in future versions here:

    EA42 - context ambiguous pop up

  • How to avoid the IP address change?

    Hello

    We are using VMware vSphere 4 and dvSwitches.

    We currently have an environment where users it requires root/administrator access to Virtual Machines.

    Is there a way we can fix the IP address of those VMs so that the user will not be able to change it? We seek to avoid IP address conflict is it happens that a user changes its network configuration.

    I know that:

    -DHCP: do it, even if we can repair con based IPs MACs (fixed through VMX), users can always change static IP...

    -DC political group: will not do the job, based on the same reason as above, user can delete the operating system of the domain.

    -One Port-Group/VLAN by VM: though it might work - she is a mayor issue because there is a limit to the number of VLANS.

    Well... enlighten me -as you normally do!

    Thank you and best regards,

    Pablo.

    vShield Edge is the choice that is reasonable and coupled with the Nexus.

  • How can I create group of complex decoration with the option to change color?


    Answer to build an XControl. Only add some decorations to XControl façade and simply a code to change the colors.

  • creating a windows prompt 7 somehow, the language is changed in Turkish.

    I have a new hp pavilion dv4-2170 with win 7, 64 bit running.  I upgraded to 7.1 vmware workstation (host).  I have a copy of windows 7, 32 bit from an office who died that I try to use as a guest. The only thing I asked is the license number.  I tried the automatic or custom installation.   He moved very well, or in English then it restarts and changes in Turkish.   I repeated it 4 times and it always does the same thing.   I tried to look at the preferences of the vm, but I have not found what is the cause.  I tried to go into windows and change it myslef but who are not English choice.  Someone at - it party ideas?

    See if that helps

    http://communities.VMware.com/thread/272233

  • Create a menu at once, update all THE pages on the site

    Is it possible to create a menu that can be managed once without change EVERY page - can - be using css?

    Regards Helen

    2 other exclusive features in Dreamweaver:

    • Library items
    • Dreamweaver templates

    Personally I prefer much inclusions on the server side.

  • CS5 - trying to create a video menu background - rendered preview menu not to see the video, only bottom black.

    I created my own custom menu, and I'm trying to attach a .m4v video (using the selector of whip) as the background video.

    I created my menu using Photoshop, and the buttons work correctly. For the background in the Photoshop file, I created a layer named "background" and black - painted there the visible value according to the other forum posts.

    When I try to get a glimpse of the menu, it is only showing black (with the keys works properly). I saw the preview and still couldn't see any video. Help please!

    Thank you

    Rob

    Too bad, I thought of it. I used the rectangle tool to draw a black box over the entire surface, then converted the smart object layer. I'll leave this for anyone who might have encountered the same problem of beginner like me.

  • How to create a menu of DVD type?

    I have a video on my stage. I would like to create a menu that will control the playback, similar to how works a menu of DVD, but without the cutting the video in separate video clips. In other words:

    My video has Chapter 1 at time 0:00, Chapter 2 at time 01:25, Chapter 3 at 03:50. The user who viewed the video would be able to click a button for Chapter 2 that could launch the video playing at 01:25, or click a button for Chapter 3 which would have the video pass 03:50, etc..

    I would do this if I can change the time simply by updating the code, as mentioned previously, split the video into different clips then loading them is not an option.

    How do I configure this?

    Thank you

    M lively help | Add video to animations

  • Creating a sidebar which increases with the height of the page

    Hey guys,.

    Currently, I am trying to create a menu bar vertically on the left side of the page, with a red rectangle in the background behind. How can I make the red rectangle grow in height of exponentially with the size of the page? The red rectangle is created in one of the master pages, with the page being 700 in height. However, when placed in a page with for example 900 in height, there is a white space between the red rectangle and the footer.

    I tried to adjust the rectangle as a footer, but it creates an empty space at the top instead-.-. Expand the rectangle to be longer that the height of the page in the master page has resulted in the foot floating above a space empty underneath, where the red rectangle continues.

    Thank you!

    The answer below is given for a similar situation. The difference is the user wanted to use a thin line as the page has grown. I think you can use the same formula, simply change the size of which is shown below.

    Note: this works only on a solid color background.

    4 Zak Williamson (Adobe).

    Since your background is a solid color, you can use a 1 pixel high image that corresponds to the width of your page wide (960px) and import it into the Page indicate and set it to repeat vertically. As a repeated vertically page fill it appears as a solid vertical line and always go all the way to the top of the page to the bottom.

  • How to create a menu in the sidebar like this?

    I am relatively new to Muse and would like to create a menu of the similar circular sidebar for the following two examples.  I would like the text to be displayed when you hover over the circles as in the first option and have a slider that goes to the bottom of the page like in the second option.  I tried looking for tutorials to help me with this nail but did not come close to one.  Any help would be great.

    Thank you!

    Example of text - http://workwankers.com/

    The example of cursor - Black 2012 Sun | We believe in...

    You can set the scroll to anchor for the navigation menu:

    http://musewidgets.com/collections/all/anchor

    Thank you

    Sanjit

  • Minimize / maximize / close buttons in the menu bar disappear often and rarely

    Half the time I start windows 7, I do not see the minimize/maximize/close buttons in the menu at the top of each window bar. When I restart, sometimes it comes back on in his place. But he continues to be very frequently.

    No one knows why this happens?

    http://social.technet.Microsoft.com/forums/en/category/w7itpro/

    Above is the link to the Windows 7 Forums.

    It is the best place to ask your questions of Windows 7.

    Here is the Vista Forums.

    See you soon. Mick Murphy - Microsoft partner

  • How close or minimize the menu box using Display.screenshot ()?

    Hello

    Did someone help out me in finding what way I can minimize or close the menu box while I take the screenshot of any screen?

    The problem is when I select the menu item Printscreen, the Display.Screenshot () method runs, and it takes the screenshot including the menu box that I opened for the selection of the menu-item (Printscreen).

    So, how to remove that box of Menu before you take the screenshot?

    Please answer

    Thank you.

    You might find some useful options in this thread;

    http://supportforums.BlackBerry.com/T5/Java-development/context-menu-coming-in-screenshot-by-using-D...

  • Replace the menu close

    How to replace the menuitems close (and possibly others) by default? Looks like I read it as possible somewhere but I can't find the link.

    What I would do, is to have the particular screen, am I to be the one who "close" but not the application (except on the home/index page). "" " Closing' child pages will cause simply fall back them into the calling form.

    You should overwirte onExit event, close menu if poster, but you can control it

    http://www.BlackBerry.com/developers/docs/widgetapi/BlackBerry.app.event.html

Maybe you are looking for