I want to change the button menu items menu blackberry
In my blackberry app I want to erase the current option to menu point (Swith application, close, Select) and add new menu button menu options.
I tried the below code but nothing is happening for me.
if (blackberry.ui.menu.getMenuItems().length 0) { blackberry.ui.menu.clearMenuItems(); } var item = new blackberry.ui.menu.MenuItem(false, 1, "Click Me", customMenuItemClick); blackberry.ui.menu.addMenuItem(item); function customMenuItemClick() { alert("user just clicked me"); }
I inserted
but no use.
How to change the menu items
I would consider removing those as bad practice of the user interface. They appear (as I know) in all the menus in all applications.
If you use the command combined with separators feature, I think you will find that it is ok?
I don't know how to remove these default items (did not seek either ;-)))
Tags: BlackBerry Developers
Similar Questions
-
OAF Page expand to change the button action
Hello
We have a standard page of the OPS in iProcurement, where there are a standard change request button, which redirects to another standard page. We want to change the button action to call another custom OAF page. Please let me know how to do the same.
Attached screenshot for reference
Follow the steps below to create a button through customization.
1. click on customize page where you want to create an element.
2. find the area where you want to create
3. click on Create icon, which opens a new window.
4. Select the style of the item as button and give the values for the element.
Browse link below
Oracle concepts for you: Add a button to a Page of the OFA
Also paste the error if you get none after following steps above.
BR, FLS
-
I just want to change the color of the button but it there as many files of code so much, and I can't find a page that will tell me it please help
You can change the color by using the App button color- https://addons.mozilla.org/firefox/addon/app-button-color/ module
-
Satellite Pro A100 SCOCAPS: I want to change the command for real player buttons
I have A 100 SCOCAPS, I want to change the media controls to real player instead of windows media player, but in media control list only windows MediaPlayer is appearing... all about can help me please?
Hello
I'm not 100% sure but I think that all media buttons are designed to support Microsoft WMP only. Maybe if you use real player plugins so that they work.
I found some similar topic, but the guy wanted to use the buttons for WinAmp. If you have time please check under http://forums.computers.toshiba-europe.com/forums/thread.jspa?forumID=3&threadID=14884
If you are success please give some feedback. It can be useful information.
Bye and good luck!
-
You want to change the label of the button during the treatment.
Hello team,
Jdev Version :--12.1.2.0.0
My needs: -.
I have a button with label as LOAD.
When you click on the button, I have to call WS. But I want that during call WS my text label will go to go SEARCH the DATA LOAD.
And as soon as his transformed my WS call it change it again to CHARGE.
Code: -.
< af:button text = 'LOAD' id = 'b1 '.
actionListener = "#{pageFlowScope.LoadOperationBean.loadAction} '"
Binding = "#{pageFlowScope.LoadOperationBean.buttonLabel}" partialTriggers = "b1" / > "
method
{} public void loadAction (actionEvent javax.faces.event.ActionEvent)
Add the code in the event here...
System.out.println ("method loadAction");
buttonLabel.setText ("data extraction");
AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance ();
adfFacesContext.addPartialTarget (buttonLabel);
setPopUpRenderCond (false);
long startTime = System.currentTimeMillis ();
long endTime = startTime + 30000L;
long totalTime = 0L;
System.out.println (StartTime);
try {}
Thread.Sleep (sleepTimeCount);
long endTime1 = System.currentTimeMillis ();
totalTime = endTime1 - startTime;
System.out.println (TotalTime);
} catch (InterruptedException e) {}
e.printStackTrace ();
}
If (totalTime > 30000L) {}
System.out.println ("Display Error message");
setSuccessMessageNote (false);
setFailureMessageNote (true);
} else {}
setFailureMessageNote (false);
setSuccessMessageNote (true);
}
buttonLabel.setText ("LOAD");
adfFacesContext.addPartialTarget (buttonLabel);
}
But I'm not able to do this.
I also tried JavaScript and attempted to call serverListener, but who also didn't make my goal.
Please suggest me.
Thank you
Céline
Hi Celine
Try this JS function on button click, it will change the button text when the click on and then your action will be executed
function changeButtonText(event) { var comp = document.getElementById('cb2'); comp.innerText = 'Fetching Data'; }
Thank you
-
You want to change the preference of information. where can I find 'Edit menu '?
you want to change the preference of information. where can I find 'Edit menu '?
You must start Acrobat Reader. Look at the menu Edition of the Acrobat Reader software.
-
How can I change the backgrounds menu for several pages?
Hello
How can I change the backgrounds menu for several pages in yet? I want a single image appears on several pages in the background.
Thank you.
You must do this for each menu page.
If the rest of the etc button style will be the same, just add the background you want and duplicate this menu before you change the titles, button names, linking.
-
I want to change the account for new messages
I have 12 mailaccounts. I want to change the standard account. It seems to me that the first account in the list is the standard account for new mail, I want the second in the list.
Tools / account settings
Button down "Actions account."
as a default value -
I want to change the layout of my e-mail messages so that the message is on the side of the headers not below them. I just downloaded mozilla thunderbird on my new laptop computer to I can not get the layout that I'd rather go back. Help, please. Thanks June
Maybe try Vertical page layout view in the menu bar.
No menu bar? Press the ALT key.
-
Re: Satellite A300-1 MW: how to change the button to start the sonique player
Hello
I have a question.
I want to change the option on one of the button control (this one with open windows media player) and it will open a Sonic player.
I've read about change in winamp, but I can't do it in Sonic.Please help me!
Hello
Yes, I read this also on the Winamp.
I tested and it s true that you can change the configuration of the key and he might start Winamp instead of WMP.But the fact is that these can be configured in the Winamp software.
There is an option that allows the use of these buttons.I don t know the Sonic player, but I guess that it is not possible
-
Change the number of items in the drop-down list box when running
I'm trying to change the number of items in one of my boxes of comobo.
I have been through the help and this forum and have the values to within the drop-down list box change very well, but in a scenario, I want to go to three options for 2. And according to other choices to 3.
I guess I have to use a property node but I can't understand that one.
You can use the method to reset to zero (using an invoke node) before setting the [Strings] (after setting the value by default an empty array) or create an Xcontrol (you can see examples of LabVIEW for xcontrol).
Ben64
-
I want to change the password I use to access MS Answers. How to do his?
I want to change the password I use to access MS Answers. How to do his?
Hello
1. How are you to access MS Answers site? Is it through Windows Live ID, Hotmail?
2. what version of Windows operating system is installed on the computer?
You can check the following items and check if it helps to solve the problem.
How can I change my password?: http://Windows.Microsoft.com/en-us/Messenger/change-password-FAQ
Reset your password: https://account.live.com/ResetPassword.aspx
-
original title: problem pop up safety box
A couple of months, my daughter opened a video on utube. The screen on my laptop turned blue with white writing and the volume went crazy. Had to hold the close button. Since then, whenever I open a page, a security box appears telling me the page contains elements safe and secure, that I want to display the non secure items? I used for the display of this box on occasion, now it is on each page. I ran windows security and norton scans and both find nothing. Anyone have any ideas on how to solve this problem, because it drives me crazy. Thanks in advance
Hello Michelle,.
You have a virus, here's what you need to do. Download and install malwarebytes of: http://malwarebytes.org/products/malwarebytes_free, be sure to update before running a full scan. If you cannot run the program at all, you will need to download a few programs of this site: http://www.bleepingcomputer.com/combofix/how-to-use-combofix it, you should get back on track.
Also, you may have a browser redirection problem. Go to your IE tools--> internet options--> Connections tab, then click lan setting and make sure that the only box to checked in it is automatically detect settings.
Let me know if it works,
Jim
-
background color: I want to change the background color of the screen of the monitor
I have a web image in my Office I want to change the background color of the screen of the monitor without a change in the office itself
could you let me know how to do this?
Thank you
I have a web image in my Office I want to change the background color of the screen of the monitor without a change in the office itself
could you let me know how to do this?
Thank you
Hello
To change the color of the desktop background, follow these steps.
Click on the desktop and select personalize.
At the bottom of the window, select the color of the window.
In the next window, select the Advanced appearance settings.
In the element , select Office.
Click the drop-down color 1 menu and select your favorite color. ClickApply/OK.
I hope this helps.
Thank you for using Windows 7
Ronnie Vernon MVP -
I want to change the blackberry listfield deafault accent color
Hello
I want to change the accent color of blackberry deafault (blue) of listfield, here is the code sample, code works fine, I want just to customize the color of the focus of the list... Please suggest me...
package Meidcare;
to import java.util.Enumeration;
import java.util.Vector;Import net.rim.device.api.collection.util.SortedReadableList;
Import net.rim.device.api.system.Bitmap;
Import net.rim.device.api.system.Display;
Import net.rim.device.api.ui.Color;
Import net.rim.device.api.ui.DrawStyle;
Import net.rim.device.api.ui.Graphics;
Import net.rim.device.api.ui.component.KeywordFilterField;
Import net.rim.device.api.ui.component.KeywordProvider;
Import net.rim.device.api.ui.component.ListField;
Import net.rim.device.api.ui.component.ListFieldCallback;
Import net.rim.device.api.ui.container.MainScreen;
Import net.rim.device.api.ui.decor.BackgroundFactory;
Import net.rim.device.api.util.Comparator;
Import net.rim.device.api.util.StringUtilities;class SearchFieldDemoScreen extends screen
{
Vector drugs_list = new Vector();
Image bitmap buttonleft, buttonright;
CountryList _countryList;
KeywordFilterField _keywordFilterField;
int mHColor = - 1;public SearchFieldDemoScreen (vector drugs_list) {}
This.drugs_list = drugs_list;
this.getMainManager () .setBackground (BackgroundFactory.createSolidBackground (0xC2C2C2));buttonLeft = bitmap.getBitmapResource ("medical_pills.png");
buttonRight = bitmap.getBitmapResource ("white_aero.png");_countryList = new CountryList();
_keywordFilterField = new KeywordFilterField();Enumeration XmlDiffOperation = drugs_list.elements ();
While (enumumeration.hasMoreElements ()) {}
_countryList.addElement (new Country (enumumeration.nextElement (m:System.NET.SocketAddress.ToString (())));}
try {}
setTitle (_keywordFilterField.getKeywordField ());_keywordFilterField.setLabel("Find:");
_keywordFilterField.setSourceList (_countryList, new Country.MyProvider ());
_keywordFilterField.setCallback (new MyListFieldCallback());_keywordFilterField.SetFocus ();
Add (_keywordFilterField);
}
catch (Exception e) {}
System.out.println ("Exception in keyword filter field =" + e);
}
}class MyListFieldCallback implements {ListFieldCallback}
{public drawListRow Sub (ListField listField, Graphics g, int index, int y, int width)}
Object obj = ((KeywordFilterField) listField) .getElementAt (index);
g.setColor (Color.BLACK);If (obj! = null & obj instanceof country) {}
Point country = (country) obj;
g.drawText (item.toString (), 20, y, DrawStyle.ELLIPSIS |) DrawStyle.HCENTER);
g.drawLine (0, y-9, width, y-9);
g.setColor (Color.WHITE);
g.fillRect (0, y-9, width, 3); for 3-pixel thick seprater "line".
g.setColor (Color.BLACK);} else if(index == 0) {}
g.drawText ("* void *", 0, y);
}}
protected void drawFocus (Graphics graphics, boolean on) {}
graphics.setColor (Color.RED);
Paint (Graphics);
}public Object get (ListField list, int index) {}
Return drugs_list.elementAt (index);
}public int getPreferredWidth (ListField list) {}
Return Display.getWidth ();
}public int indexOfList (String prefix, int start, ListField list) {}
return 0;
}
}class CountryList extends SortedReadableList
{
Vector drugs_list = new Vector();public CountryList()
{
Super (new Country.CountryListComparator ());
}Sub addElement (Object item)
{
try {}
System.out.println ("Ankur");
SearchFieldDemoScreen.ls2 = new ListStyleButtonSet();
((Field)) SearchFieldDemoScreen.ls2.add element;
doAdd (element);
}
catch (Exception e) {}
System.out.println ("Exception in Add item =" + e);
}
}}
}class country
{
private String _countryName;public country (String countryName)
{
_countryName = countryName;
}public String ToString)
{
Return _countryName;
}public static class MyProvider implements {KeywordProvider}
public String [] getKeywords (Object obj) {}
Point country = (country) obj;
return new String [] {item._countryName};
System.out.println ("called MyProvider");
Return StringUtilities.stringToWords (obj.toString ());
}
}public static class CountryListComparator implements comparator
{
public int compare (Object o1, object o2)
{
System.out.println ("CountryListComparator called in method compares");
If (o1 == null | o2 == null)
throw new IllegalArgumentException ("can't compare countries null");
Return o1.toString () .compareTo (o2.toString ());
}
}
}Thanks in advance...
Oky I solved the problem...
using the...
{if (g.isDrawingStyleSet (Graphics.DRAWSTYLE_FOCUS))}
change the accent color
g.setBackgroundColor (0xDCDCDC);
g.Clear ();
draw text
g.setFont (Resize.getSecondFont ());
g.setColor (Color.BLACK);
g.drawText (item.toString (), 20, y, DrawStyle.ELLIPSIS |) DrawStyle.HCENTER);
}inside the drawListRow...
Thank you all...
----------------------------------------------
Press on as if you like it...
Maybe you are looking for
-
FTP with WRT160N router wireless problem
I upgraded my router WRT54G, a little back and ever since then, I can't get my (CuteFTP 7.0) FTP software to work. I didn't change anything with the FTP software. The change ONLY on my system is the new router. Is there some sort of setting I need to
-
one thing popped up the other day, while using the internet saying: I had a virus and to move to the vault, and now I can't access anything that either don't even m SRDyLa or the music I do it doesn't let me do anything...
-
Keeps print job stuck in the queue and is not over
Mavericks OSX 10.9.2 running. Whenever I have print the print job gets just stuck in the queue. I already removed restart printer, uninstalled existing SW and downloaded and installed the current drivers and (v12.34.37) and always without success.
-
I use a PC laptop Dell and dock at work, and I take my laptop home every night. Yesterday, when I got in I have connected my laptop and got to the login screen. On my first newspaper in an attempt to the computer I locked for 15 minutes. Once I wa
-
Question ATG10.2 with the settings app regional
Hi allWe use ATG10.2, and we get a problem with the language.Instead of get from profile (pt_BR) locale, the application becomes local server params (we use English language en_US server).It worked well, but he started getting this problem after you