Context menu when I click on a button.
Hello
I have a class that extends the screen and I crushed MakeMenu() I want to create a custom menu when I press "menu".
My problem is that when I click on a button on the screen of my program is all what need then after all that it displays a context menu with options {Application Switch |} My menu | Full menu}
This is my replacement of makeMenu(). Note: If I remove my call menu.add is solved the problem. But obviously I need the item in the full menu and no popup.
Thanks in advance
public void makeMenu(Menu menu, int instance) { super.makeMenu(menu, instance); menu.add(new MenuItem(new StringProvider("Settings"), 110, 10) { public void run() { SettingsHome setScr = new SettingsHome(); UiApplication.getUiApplication().pushScreen(setScr); } }); }
You don't have to set these fields.
The operating system takes care of it:
public void makeMenu(Menu menu, int instance) { super.makeMenu(menu, instance);if(instance == Menu.INSTANCE_DEFAULT){ menu.add(new MenuItem(new StringProvider("Settings"), 110, 10) { public void run() { SettingsHome setScr = new SettingsHome(); UiApplication.getUiApplication().pushScreen(setScr); } }); }}
E.
Tags: BlackBerry Developers
Similar Questions
-
I can not open Start Menu when I click on the button on the taskbar
When I click on the Start button, the Start Menu does not open. Also when I right click on the taskbar to see the properties, there is no menu open. There is no context menu when I place the mouse on an icon in the taskbar.
Hi bienvenuunkap,
1. When did you start to question?
2. you remember to make changes to the computer before this problem?
Step 1:
You can check if the problem occurs in safe mode.
Start your computer in safe mode
Step 2:
You can also check the following link and try to download the Microsoft Safety Scanner and perform a full scan on your computer and check:
http://www.Microsoft.com/security/scanner/en-us/default.aspx
Note: When you perform the analysis, there are risks of data loss you can take a backup of important data before performing analysis.
Step 3:
If you are still facing problems then try creating a new user account and check if the problem occurs:
If the problem does not occur in the new user, then check out the following link and follow the steps to repair the corrupted user profile:
Difficulty of a corrupted user profile
Hope this information is useful.
-
I have windows XP. I use msn.com for my homepage. I entered the sites I want to go to every day. These sites are in the drop-down menu when I click on the blue arrow down. When I click on any one of these sites, they are not open. What can I do to fix this.
Your user agent shows you are running Firefox in compatibility mode for Windows 98 (NT 4.10).
- User Agent: Mozilla/5.0 (Windows NT 4.10; rv:37.0) Gecko/20100101 Firefox/37.0
Make sure that you are not Firefox running in compatibility mode.
You can open the properties of the desktop Firefox shortcut via the context menu and check under the tab "compatibility".
Make sure that all items are disabled in the tab "Compatibility" in the Properties window. -
Read simultaneous animations when you click on a button
Hello
Anyone know how to animate two animations on the timeline on the edge play at the same time when I click on a button?
I have a button in my menu when I click on it I need to play the animations on the timeline.
Thank you for helping me.
Hey g.bollmann,
I personally found that to use a class in the way you describe you must make a function for the class and then call this function: creation, for example participated
sym.playIndef = function() {}
sym.getSymbol(".indefl").play ();
}
then just call it when you want an all the symbols with the indefl class to play:
sym.playIndef ();
I would recommend personal the first way that I have described as I find that you can control the project
hope this has helped
-
How to open 2 sites on start and 1 Web site when you click the home button?
How to open 2 sites on start and 1 Web site when you click the home button?
You can change your shortcut on the desktop Firefox with two starting URLS. To try:
- Shortcut on the desktop: right-click on the icon, choose Properties
- Icon taskbar pinned: clic click right on the icon, right click in Mozilla Firefox, click on properties
Windows normally selects the shortcut tab. If this is not the case, go ahead and click on the shortcut tab.
You will see the target highlighted. On 64-bit Windows, which is usually either not less the following:
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
For the specific shortcut launch pages, you can add them to the end, for example:
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -url "http://www.dilbert.com/" -url "http://www.gocomics.com/pearlsbeforeswine"
After OK'ing the Properties dialog box, you can test everything right now to confirm that Firefox is now launching a window with tabs. Either:
- Double-click the shortcut on the desktop
- right click on taskbar icon pinned, click Mozilla Firefox
Who do you want?
-
I can't get anything to respond when I click on the buttons. I can't go out the window, the back or forward buttons are unresponsive ect... I have to get out of the whole thins just to get a new page. I have uninstalled several times but it didn't seem to help.
Hello
Please check if this occurs in Safe Mode
-
Can't let a Web site when I click the back button, it keeps just returning on the site, have to close Firefox and restart my search.
The website below is just an example, it is a little more.
Is this a problem with Firefox or this particular Web site?
Thank you for your help.I thank very you much for trying to help me.
I think you pointed me in the right direction, I tried on IE (ugh!) and he worked there. It's been awhile that this HARD drive has been in service and I think it's time to do a clean reinstall of everything.
Once again, thank you.
fredsbroke2 -
My DVD player does not open when I click on the button
Hello
I hope someone can help me.
My DVD player does not open when I click on the button.I tried clicking on eject on the DVD drive icon in my computer and it comes up with an error message.
I think I deleted the cookies the other day. Who would have something to do with the problem?Any help would be greatly appreciated that I really don't want to send my phone to a technician.
Hello
Try to manually open the CD/DVD drive.
Near the eject button, you will find a small hole.You can use a small object like staple and could push gently into this hole.
Usually, this should help to open the drive manually.
-
How to run the SWF file when I click on a button
Dear friends!
I did three and kept SWF files in a folder, how do I make a flash 8 project to execute when I click on a button. I'm going to make buttons for each SWF file
Please help me
use loadMovie to load in your main swf (with button).
-
When I go to internet banking as a clydesdale, it opens a new page to connect, but a few days ago it stopped working with the new update. Now when I click on connect, it says "FOUND the document pushed here." and clicking here opens another page of connection, but after being entered the details the page doesn't load. the same thing happens on other sites, on the other, when I click to read the messages page does nothing, and if I click to open in a new tab the same page is displayed instead.
GundamGirl said
Theres been other people having this problem too...
Yes, for example, that this person- https://support.mozilla.org/questions/1078226 -, but they did not post cost around if any suggestion made a difference, I appreciate your following upward.
Here are two other things to check:
(1) connection settings - have they been customized?
"3-bar" menu button (or tools) > Options > advanced
Click the mini network, and then click the settings button
The default value of 'Use system proxy settings' should follow your 'LAN' setting, as well as IE, but you can also try 'No proxy' to see if that makes a difference.
(2) extensions - test Firefox to turn off Safe Mode
Firefox Safe mode is a standard diagnostic tool to disable some advanced features of Firefox and extensions. More info: questions to troubleshoot Firefox in Safe Mode.
Does not work if Firefox: Hold down the SHIFT key when you start Firefox.
If Firefox is running: You can restart Firefox in Mode safe mode using either:
- button "3-bar" menu > "?" button > restart with disabled modules
- Help menu > restart with disabled modules
and OK reboot.
Two scenarios: A small dialog box should appear. Click on 'Start mode safe' (not update).
Any improvement?
-
Sometimes with annoying frequency. The new facility of 32.0 is barely a month, but it happened a few days later. I left the window update run for 20 minutes. Nothing, never. Apparently it will never truly connect you. Nor will it update automatically when I click on the line 'About' on the drop-down list in the Firefox menu bar.
If he has problems with the update or with the permissions then best is to download the full version and trash the version currently installed to do a fresh install of the new version.
Download a new copy of the Firefox application and save the file to disk on the desktop image
- Firefox 32.0.3: https://www.mozilla.org/en-US/firefox/all.html
- Basket of the current application of Firefox (open the Applications folder in Finder and drag the Firefox application to the trash) to do a cleanup (re) install
- Install the new version you downloaded
- https://support.Mozilla.org/KB/installing+Firefox+on+Mac
Your personal data are stored in the Firefox profile folder, so you will not lose your bookmarks and other data to personal when you uninstall and (re) install Firefox.
-
Why my game works only when I hit enter and not when I click my Start button?
If I have a weird problem with a game that I put as well as the actionscript 3.
The game is not complicated. I found an online tutorial for a simple navigation with the keyboard arrow keys. I have a menu at the beginning of the game screen, and I made a start button that takes you to another frame of the scenario where the game is coded. If I click on the Start button it navigates to the reading of the chronology section, but keyboard commands do not work. If instead of press the start button, I just hit enter on the keyboard the swf plays forward until it hits the game section and the shutdown command, then the keyboard commands work fine.
Of course, my keyboard navigation controls are correct or it wouldn't work at all but why clicking on the button start, I created somehow stop it working correctly?
Any suggestions or ideas anyone?
See if the following discussion to resolve the problem:
http://StackOverflow.com/questions/12469276/action-script-3-keyboard-event-set-focus
-
How to do an audit in the order page IN. When you click on the button "submit"
I want to do an audit in order IN. When you click on the "submit" button, it will be checked whether the OP is reserved and will display the message if not.
I have a CO span from the original, I can know where should I put the logic inside the processFormRequest? and how to write code to control them thanks.
public void processFormRequest (pageContext, OAPageContext,
OAWebBean oAWebBean)
{
super.processFormRequest (pageContext, oAWebBean);
}
OK here is the code below,
String sql = "START: 1: = XXPO_CHECK_RESERVED_PKG." XXPO_CHECK_RESERVATION(:2); END; « ;
CallableStatement cs = txn.createCallableStatement (sql, 1);
String outputval = null;
try {}
cs.setString (2, Segment1);
cs.registerOutParameter (1, OracleTypes.VARCHAR);
CS. Execute();
outputval = cs.getString (1);
TXN.Commit ();
} catch (Exception sqle) {throw new OAException ("Error in the application of staffing", OAException.ERROR) ;}}
-Beginning of the code by Hemant
If ("N".equals (outputval) &! ") ». Equals (outputval))
{
throw new OAException ("The PO isn't in reserved State");
}
-
New inputext when you click on the button
Hi all
I have a table with three fields: ID (pk) and ParameterName, ParameterValue.
In my web form: I do a button, when the user click on the button New Row-> new inputtext two show, they are ParameterName and ParameterValue.
After user entered value for two inputtext-> click Save to insert it into the db table.
Example of a web form like this:
ParameterName: < administrator > ParameterValue: [email protected] >
ParameterName: < member > ParameterValue: [email protected] >
But on my web form must maintain the new value of line in there to inputtext.
Thank you
Take a look at af:forEach and af:iterator
http://jdevadf.Oracle.com/ADF-richclient-demo/docs/tagdoc/af_forEach.html
-
How to create a form that is displayed when you click on a button?
I want to create a contact form on my Web site that appears when you click the button 'click here to contact us' floating on the web page. I can't figure out how to make this work. Any help would be appreciated!
You can really use any widgets of composition. You probably want to use the Widget for Composition of ToolTip and the setting of the trigger button and form as target.
Maybe you are looking for
-
Icons do not appear on the desktop
When I start my computer the colors of four windows are displayed.No images on the bottom or the other. I tried 'see' and 'display the icons', but it does not workI don't know what I am doing wrong because sometimes the icons after re-booting
-
HP Stream 13: Beware of the upgrade to Windows 10
I have just told me that in Hp Support the HP 13 Stream is not recommended for the upgrade to Windows 10 due to the lack of space and memory for this new operating system. I thought it would be interesting as well as alarming to soemwhat. This occurr
-
Teacher of XP SP3 32-bit vs WD MyBook 3 to HARD drive
Hello! I saw his huge amount of information on this topik, but thay have been highly controversial and in English, which is not my first language. Then a few days ago, I bought a WD MyBook Essential TB external HARD drive. In the box there are:"Forma
-
I added memory to a Windows XP Pro machine and concluded that the system was almost out of space! After investigating this problem found the installation in the folder windows file was more than 30 gig by itself, the files in this folder back to the
-
Search in the win7 backup files
I see that Win7 Backup allows the search for file and folder names, but says nothing about the search in the saved files. Is this possible? It is a crucial issue for users of MS Win7 Backup. Please provide a response. I used Agent Ransack with great