process the command in the main menu
Hi, I'm developing a simple software, which is like a text editor.
I wonder how I can catch the command in the main Menu, so that when the user clicks on the menu "--> close" / 'come back' by accident (there are 2 buttons on the 'Pearl', I need to take into account), I can see a message asking to save the unsaved work.
Thank you
Jerry
My advice would be to substitute onClose() and prompt the user to check he wants out.
Tags: BlackBerry Developers
Similar Questions
-
I'm looking for the main menu button
The main menu depend on your phone.
If you have a phone with a menu button Android it will be activated by this button.
If you have a phone with a switch button Android app it will be activated by pressing the three points or lines near the address bar.
-
Some dropdown menus drop on the left edge of the page instead of under the main menu
Some drop-down menus at the left edge of the page instead of under the main menu.
This does not happen on all web sites. Very confusing.Yes, I see the same thing with Firefox 21 with the menu container.
Works fine for me with the beta version of Firefox 22 and later, it's broken in the current Firefox version 21.You can consider making a custom of the beta version of Firefox 22 Setup or wait a few weeks until Firefox 22 is released.
You will need to create a new profile for the beta version, so not to launch Firefox after installing the beta.
See:
-
I had a few existing Firefox bookmarks but wanted to add a bit of Safari. Now, the imported bookmarks from safari appear as a bookmark called IMPORTED FROM SAFARI. How can they be merged so that all bookmarks fall under the main Menu of bookmarks?
You can move or copy/paste to another folder in the library (bookmarks/history Manager) through the context menu or the menu organize button on the toolbar.
- Bookmarks > show all bookmarks
-
I need to disable the 'Help' option in the main menu.
I am running Public Fox 1.09 as an addition in our school district, because it allows me to keep the students from our proxy. They discovered that all that they have to go to 'Help' and 'restart with disabled modules. They can then select "Not of Proxy" and get anywhere that they want. I need to disable the 'Help' option in the main menu.
Hello NeonLeon, if it would be possible in principle to hide some menu entries, the next thing that your students will discover is that you can also get in safe mode by pressing the SHIFT key while launching firefox, so it's no solution...
You can use a mozilla.cfg file in the firefox program folder (where the students hopefully will have no write access) to lock some preferences as the configuration of your proxy, for more information, see: http://kb.mozillazine.org/Locking_preferences
-
How to get my Apple TV purchased apps to appear on the main menu? I got all my apps on the main menu. I had to reset and reinstall Apple TV to get Airplay for work. It worked, but now my apps are only visible when I go to the window "purchased apps. I would do again all back on the main menu. There are 19 of them. How can I move them into the main menu? That's where they were all before resetting. Apple TV Gen.4. I asked the President, but she did not.
Apple TV does not display the cloud purchases would be in the same way, an iPad or Mac. You must re-download your applications so that they will appear on your home screen. Good luck.
-
What are the CSS selectors for the main Menu of FireFox 4?
What are the CSS selectors for the main Menu of FireFox 4?
http://img228.imageshack.us/img228/5512/ff4menubar.gifAlways the same as in Firefox 3.5 and 3.6 versions:
#main-menubar #file-menu #edit-menu #view-menu #history-menu #bookmarksMenu #tools-menu #helpMenu
-
How can I add app to the main menu of the AppleTV?
Hello
Our YouTube app icon disappeared from the main Menu of our AppleTV (software version 6.2.1) a few months ago.
It seems to coincide with an update software and thought that Apple didn't guarantee the rights or something to use the YouTube link, but we noticed from the icon of the application on other AppleTV.
Anyone know how I can add the icon back to the main menu?
We went to the settings area to see if we could "show" the icon but is not listed:
https://drive.Google.com/file/d/0B3RNYlFlPZcNOXY4VTM2ZWpubjg/view?USP=sharing
Thank you
I think you have an ATV2 - correct? YouTube pulled support for generations past last spring...
-
The main menu 3dot icon is missing in ff26 for android. How to find this button?
TECHNICAL DATA:
OS: Android v4. ? (do not know how to find the version)
Web browser: Firefox for Android v. 26PROBLEM:
Of what I read when looking for assistance, it is supposed to be an icon next to the bookmark icon (top right of the browser) which resembles vertical three points which, when clicked is supposed to display the main menu. On my screen there is no such icon for main menu at all anywhere on the screen. (If someone can put some instructions on how to show a screenshot in this thread, I could provide a).QUESTIONS RELATING TO THE:
1.) how can the menu icon main foeced appear?
2.) y at - it another way to access the main menu in the Android version of firefox if missing this icon "3 points"?NOTE: subject: config seems to have been paralyzed in the Android version of firefox so that there seems to be no way to list all the settings such as once, as it was the fault discovered in the desktop version of firefox.
In my view, the icon to the left of the main button that looks a bit like a tray to reverse mail is the menu button.
-
How are you going to the main menu while watching a dvd
While watching a dvd how do you get to the main menu?
In Media Center, right-click and select controls then menu options to go to the DVD menu.
-
How to restore the main menu?
Hello
Restore it in what?
in windows Explorer
Open it and then click on organize then page Setup then menu bar
in internet explore
Right-click just below the address bar, and then click menu bar
or go to tools in the upper right and select menu bar
-
Main menu of continuous bridge constantly appear on the screen, the main menu switch does not
Original title: MAIN MENU
Main menu of bridge keeps flashing constantly on the screen. How can it be turned off? The main menu switch does not work. Thank you.
I would check the FAQ of the gateway.
-
is it possible to have a link in the main menu options on bb (similar to how apps screenshots are still in the menu when you click on the bb button) that launches your application webworks?
Its possible. To do this you must create a custom extension that registers a menu item to your application with the system.
It would be a great extension to add to the API community repo:
https://github.com/BlackBerry/WebWorks-community-APIs
Here are the instructions on how to do it in Java:
http://docs.BlackBerry.com/en/developers/deliverables/11935/Create_a_menu_item_602617_11.jsp
Suggest starting with the proposed MODEL to integrate the code of this menu.
https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/Smartphone/template
-
Hello everyone,
I came across this example code and tried to run on the Simulator 9900 and for some reason, the Simulator does not pick up the code. ..
as the application does not appear on the main menu screen options... so I can not fire at all.
someone knows why... ID really appriciate the help
(Note: the simple code opens a new window when clicking on a button)
Kind regards
gezzy
package mypackage; import net.rim.device.api.ui.Field; import net.rim.device.api.ui.FieldChangeListener; import net.rim.device.api.ui.UiApplication; import net.rim.device.api.ui.component.ButtonField; import net.rim.device.api.ui.component.LabelField; import net.rim.device.api.ui.container.MainScreen; public class FirstScreen extends MainScreen implements FieldChangeListener { ButtonField theButton; public FirstScreen() { add(new LabelField("First Screen")); theButton = new ButtonField("New Screen", ButtonField.CONSUME_CLICK); theButton.setChangeListener(this); add(theButton); } public void fieldChanged(Field field, int context) { if (field == theButton) { UiApplication.getUiApplication().pushScreen(new SecondScreen()); } } public class SecondScreen extends MainScreen { public SecondScreen() { add(new LabelField("Second Screen")); } } }
I think you are saying that the application icon will not be displayed on the Simulator? If so, this can help (I had the same problem and what I did):
1 assuming you are using Eclipse, just run the program (it will be forfeit and display an icon to load for a few seconds on the Simulator).
2. then go to file-> load BlackBerry Application or theme on the Simulator.
3 navigate to your compiled COD of the file, then open it.
4 after a loading icon, the application should appear in the menu.
If this does not work, try to close the Simulator and do step 1.
I hope this will help!
-
I remove options in the main menu in Daemon tools pro advanced version 5 bar, now I can't get back them, can someone help me how to recover the menu buttons in the user interface of the daemon tools toolbar
original title: daemon pro toolsHello
The question you posted would be better suited to the community of Daemon Tools. Please visit the link below to find a community that will provide the support you want.
http://www.daemon-tools.cc/Eng/support
Maybe you are looking for
-
X 220 and Mini Series 3 with USB 3.0
Hello I am recently received a Mini Series 3 with USB 3.0 for my laptop company ThinkPad X 220 Windows 7 64 bit. However, after installation of the USB 3.0 driver downloaded from the Lenovo Web site, I still do not see USB 3.0 in my Device Manager de
-
XPERIA SHOW Football Challenge
This app has a big problem to connect to the server, 23 hours of the day... actually not able to download the server information! Annoing msg!
-
help my pc does not start the only way is in safe mode
I tried to restart but nothing works I don't know what to do and I have no recovery disk.
-
Installed a new hard drive and now the activation code on my copy of windows 7 is not valid
The hard drive on my husbands computer fried, got a new and now it says that the activation code for our windows 7 is not valid. How can we get around that we cannot help but another copy of windows. It is a copy 3 PCs and it's on mine my mobile son
-
MX200 possible faulty camera - will need me any unit tha RMA?
I have a possible faulty camera on a MX200 in a very remote location. Before that I have the kickoff of a request for TAC, does anyone know if a faulty camera MX200 requires a complete unity RMA number? The reason why I ask is if I have to RMA the to