How to display the menu on the my button click event
I need to show the menu on clickevent on my button and menuitems will be different for the different buttons. How to do this.
I have the substitution makemenu like that method.
protected void makeMenu(Menu menu, int instance) { super.makeMenu(menu, instance); menu.deleteAll(); if (categoryFlag) { for (int i = 0; i < list.size(); i++) { menu.add(newMenuItem(list[i], 110,10+i) { public void run() { callMeWithScrollField(0); } } ); } menu.setOrigin(categories.getExtent().x, Display.getHeight()); } else if (optionFlag) { menu.add(subscriptionMenu); menu.add(reOrderMenu); menu.add(aboutMenu); menu.add(feedBack); menu.setOrigin(option.getExtent().x, Display.getHeight()); } menu.show(); }
But it shows the menu twice.
Sorry my mistake.
You will not be able to do what you want using makeMenu. Instead, you will need to override onMenu() to the screen. Here's a sample:
{} public boolean onMenu (int instance)
super.makeMenu (menu, for example);
NewMenu menu = New Menu();
newMenu.add (new MenuItem ("Test", 110,10) {})
public void run() {}
}
}
);
newMenu.show ();
Returns true;
}
Tags: BlackBerry Developers
Similar Questions
-
How to disable the Touchpad buttons click?
Could someone tell me how to disable the clicking sound when you use the buttons on the touchpad?
Thank you.
Hello
What noise do you mean exactly? It come from the speakers?
My touchpad buttons don t create sounds coming from the speakers
There is a single click but its generated by the buttons on the touchpad mechanically and it cannot be disabled. -
How to disable the windows button clicking noise
When I press the Windows button at the bottom of my Tablet Acer Iconia W4-820, it produces a clicking noise. It is generated by the system via the speakers. Is not associtated with the touchscreen keyboard. How can I disable this? Thanks in advance.
Justin,
Please check. By coincidence, I had some problems with something else, and the solution for this is to disable FilterKeys in accessibility settings. After that I turned off FilterKeys, the by clicking on stop. So, this trigger is a function of filter keys.
--
Garrett
-
Hi all
I use "BasicEditField.FILTER_REAL_NUMERIC" for one of my EditField to only show the digital field.
It works fine, but I am not able to see the digital 1 on the keyboard on the Blackberry 9530 Simulator.
How can I show the digital 1 on the keyboard?
I use the jde 4.7 with eclipse plugin.
Thank you for your help in advance.
It seems that there is a bug in the JDE 4.7.0.75 which is solved in the 4.7.0.90 version.
I found this after searching the forum.
Here are the links for more details.
http://supportforums.BlackBerry.com/T5/Java-development/virtual-keyboard-missing-a-number/m-p/94565
-
OBIEE answers how to display the menu drop-down
Hello
In answers how to display the name that we choose in the drop-down list on the report page
and another thing is that I want to display the number of lines in the report as report salary has 20 lines, followed by the 20 lines in the report
Waiting for your answer.
Rgrds,
Bala
Published by: user13068446 on May 13, 2010 22:30create a report and save it.
now, to create a line of dashboard your wish to keep as it's the default SNA record the prompt of the dashboard.
now, go to the dashboard - options - section drag and report him.
now do drag the guest to this article and put this promp above the report...
Save it
Now you can see the drop down prompt menu selectedConcerning
J Mama Prasad
-
How to display the menu bar in Windows Explorer?
I use Intel Core i5-3470 CPU @ 3.20 GHz, 8, 0 GB of RAM, Intel HD graphics card
MS Windows 7 Home Premium v. 6.1 64-bit SP1
I have Kaspersky Internet Security in 2014, and I Google Talk, Skype and Memeo Backup Premium Pro running in the background.I tried to display the path in Windows Explorer (see arrow)
None of these options allows to get anything.
How to display the path?
- Click on start, then run
- Type: REGSVR32 /i BROWSEUI. DLL
- Close all Windows Explorer Windows
- Bring up the Task Manager
- Kill explorer.exe (which is the operation of the office)
- In Task Manager, select file, then new task (run)
- Type explorer.exe
Open a new Windows Explorer, the address bar should now be visible.
-
How to display the drop-down list box in MS excel by using labview report generation toolkit? Please post the block diagram of the code so that I can able to generate from the drop-down list box in excel with the menu drop-down...
Like this. (edition, use the reference forms instead of the reference to the worksheet)
Ben64
-
How to display the speaker icon in the taskbar in windows 7?
How to display the "speaker" of the taskbar icon in windows 7?
Thank you
concerning
Jamal
Hi Jamal
1. right click on the taskbar, and then select Properties.
In the Notification area section, click the Customize button.
2. in the Configuration window, find the Volume icon.
The Drop Down Menu to select the icon lounge and Notifications.
3. If you don't see the Volume icon, click system icons activate or deactivate the link at the bottom of the window.
Find the Volume icon and select enabled in the menu dropdown.
Repeat step 2.
Let us know the results.
Concerning
-
How to display the java console on Windows 7 using Sun Java plug-in
Hi all
I have an Oracle 11 g installation Rel2 developer on my windows machine.
For the purposes of debugging, I would like to know / Access how to display the java console.
Thanks in advance...!You turn on the Java Console in the applet of the control panel Java (Start Menu-> Control Panel-> Java-> tab advanced-> Java Console).
Craig...
-
How to display the width of the page or the big screen in firefox 11 automatically?
How to display the width of the page or the big screen in firefox 11 automatically? I know how to Ctrl +, ctrl - and ctrl 0, but is there a way to define 11 firefox to automatically set the page viewing by default "page width" or full screen (F11 not)?
Help, please. Thank you.You can use an extension to set a page zoom and the size of the default font on the web pages.
- Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
-
How to display the list of components in ultiboard 10?
The DRC report the errors where the components that are no longer in the design have been removed. How to display the list component and then remove them from the netlist to stop this?
Ultiboard reported missing errors of component (part 'X' is not about design) because the part is always referenced by a net. To fix this, you must remove the part of the net. Following the steps below to remove the part form the net.
1 tools > Netlist Editor
2. for each network that the part has been connected to, select the Net (upper-left).
3. Select the tab of pine trees, select the part and it is the PIN in the dialog box, then click on remove
The problem is when the part is removed, I see no easy way to determine the threads you need to remove the part of. I entered this as a feature request to make this easier, but as a workaround, you can put part and say Ultiboard what the missing part, then search the net names on the pins and remove the part of these pins
1 place a piece with a lot of pine trees (for example the part that was removed, or for example through Hole technology > Connectors > SIL & headers > HEADER2X9). When you place the part, make sure that the RefDes matches the RefDes of the part which has been removed.
2. once the room is placed, you should see rats nest lines that connect the part to the nets.
3 Zoom on the pins. You should now see the net name on each of the axes. For each of the pins connected, remove it from the net as described above.
4. remove the part that you placed.
-
How to display the name of my refnum on the front?
I write data to a file. To do this, I use ' Open/create/replace the file' to prompt the user for a file name, which is then out of my VI as a refnum. I then write strings in this file with "write to a text file.
How to display the name of the file (including the path) on the front panel once the user has entered it?
Michael
Use the Refnum at the path of e/s from file-> advanced file palette. You can wire it to a path indicator.
-
How to display the wireless in my xp on lenovo 3000n200 please show me shortened steps you
How to display the wireless in my xp on lenovo 3000n200 please show me shortened steps you
Hello
1. do you have problems connecting to the wireless network?
2. don't you make changes to your computer, after which the issue started?
3. where exactly you want to display the wireless network?If you have problems to connect to the network, I would recommend that you reinstall the wireless network cards.
Follow the steps in this article.
-
How to display the lsit of play while visualizations are playing
How to display the playlist while visualizations are playing
What version of WMP are you using?
You can usually right click the button reading at the top and select view the list pane.
-
How to display the date on the taskbar (toolbar)
Please tell me how to display the date at the bottom of the screen. Currently, everything is displayed is the time.
Hello
You said in addition to the clock so I initially think not that you need it however, others said it would be a good idea to show this method of date display. Also if you move the taskbar vertically the date is also displayed.
Always see the day, date and time in the taskbar
http://freewindowsvistatutorials.com/meetWindowsVista/taskbarAndSystemTray/showDayDateAndTimeInTheClock.phpYou can lift the taskbar is higher - make a right click on it - uncheck box lock the taskbar then take the upper part of it and lift it higher and the date will be under the clock.
--------------------------------------------------------------------
I found a utility that does on one level of the bar tasks if it does not have to be raised-
T - clock - free - 3 references to it:Windows7 like clock on the system in Vista & XP tray
http://www.tothepc.com/archives/Windows7-like-clock-on-system-tray-in-Vista-XP/TClock: See the Date Look like Windows 7 & time in the system tray in Windows XP and Vista
http://www.askvg.com/tclock-show-Windows-7-look-like-date-time-in-system-tray-in-Windows-XP-and-Vista/T - Clock of the Stoic Joker
http://www.greggdeselms.com/tclock.htmlI hope this helps.
--------------------------------------------------------------------------------------------
Rob Brown - Microsoft MVP<- profile="" -="" windows="" experience :="" bicycle="" -="" mark="" twain="" said="" it="">->
Maybe you are looking for
-
How can I remove my iphone 5s icloud?
There is a problem in my iphone 5 s. How can I remove icloud lock?
-
HP Deskjet 2130: Cartridge for HP 2130
What kind of ink is used in the cartridge? dye soluble in water or to the pigments?
-
Setup Automatic ISATAP #28
My computer automatically installed ISATAP #28 on 30/01/12, cam, you tell me what it is, please, regards Bob Holehouse, * address email is removed from the privacy *
-
Hi all My acer 5749 flashed a blue screen while I was loading some film from a blue screen USB files is one of those blue screen of death but he went off so fast that I didn't have time to read. The laptop, then stop. I tried to restart and got a bla
-
my hard drive is 303 dead and I don't have recovery
HP pavlion 1313ax g6