Context menu on Custom EditField?

Quick Q... I have this simple custom EditField and now I've lost the context menu (I have to cut and paste)...

Can someone please indicate what to replace to get it back?

Thank you

public class EditFieldStyled extends EditField{
    public EditFieldStyled(long style) {
        super(style|EditField.NO_NEWLINE);
    }
    public EditFieldStyled() {
        super();
    }
    public void paint(Graphics g) {
        int _oColor = g.getColor();
        g.setColor(0x00999999);
        g.drawRect(0, 0, getWidth(),getHeight());
        g.setColor(_oColor);
        super.paint(g);
    }
}

Isn't it great how just ask a question on this forum lets you solve your problems?

The EditFields were on a PopupScreen that does not have a default context menu. So just change the Style of the PopupScreen as follows.

public MyPopupScreen(){
    super( new VerticalFieldManager(),DEFAULT_MENU);

...

Tags: BlackBerry Developers

Similar Questions

  • How to add custom context menu menu items?

    How to add custom context menu menu items?

    through c++ sdk

    Hi Philippe,.

    to display a context menu you just replace the path of the menu. For example if you have a menu ' hand: & Layout: MyMenu "you can add it to the context menu"RtMouseLayout:MyMenu"in your MenuDef resource in the file en with the ActionID of your ActionComponent.

    Markus

  • Customizing the context Menu

    Hello

    I spent 7 hours trying to customize my context menu in Vista without a bit of luck or find any information (useful) online.

    I am aware of a tool called FileMenu and ContextEdit, but they allow me some control over the context menu, however, it seems that you cannot rearrange the order. I know there is a lot of information about adding and deleting items in the context menu, but none on how to change the order (or how you can determine the position of the added items or a separator).

    My context menu looks like this.

    Explore
    Open
    ------
    Extract all
    Eraser
    FileMenu Tools
    ------
    Search for viruses
    ------
    Unlocker
    ------
    7-zip
    Open with
    ------
    Cup
    Copy

    etc...

    I'm changing the order of:

    Explore
    Open
    ------
    7-zip
    Extract all
    ------
    Eraser
    Search for viruses
    ------
    FileMenu Tools
    Unlocker
    ------
    Cup
    Copy

    etc...

    Someone at - it thoughts on how to achieve this?

    Thank you

    Hello

    Refer to this link and check.

    http://www.WinVistaClub.com/E11.html

    It will be useful.

  • Customizing Windows Explorer, context Menu, right click Menu, Windows 7

    [Windows 7 Ultimate 64 - bit Desktop.]  In Windows Explorer, right-click, context Menu, send to, doesn't have a choice option or the selection for "desktop (create shortcut)".  How can I edit or create it as an option send to?

    Also, I want to customize then send it to the list of choices (delete some or adding create new ones), how this is done?

    Finally, how can I change or customize the options choice in put it right context Menu (i.e.; remove choice-option "restore previous version", or creation-adding an option of choice are not currently on this menu.)?

    Hello

    I suggest you run this command at a command prompt:

    Check out this link to open the prompt in elevated mode: http://windows.microsoft.com/en-US/windows7/Command-Prompt-frequently-asked-questions

    "ECHO office >" C:\users\default\AppData\Roaming\Microsoft\Windows\SendTo\Desktop (create shortcut). DeskLink.

    You may need to close the session and insert it again so that the changes take effect.

  • Popup context menu arrows are oversized...

    After having upgraded to 8.1 windows context menu "'(extended menu) flyout arrows are now huge...
    I thought it could have been my DPI which is 108 (so I corrected the remarks: config setting), or it could be something in
    My chrome.css file...
    It is not of the foregoing, it seems to me.
    Looking at a new installation of all night also makes these oversized arrows.
    Any thoughts?
    BTW, I do not wish if away from my DPI custom setting in Windows... everything was fine in 8.0?

    We had at least one previous thread: size of triangles bookmarks menu has changed.

    There is a bug on file and a patch is in preparation for Firefox 29. You can follow here: https://support.mozilla.org/questions/975184#answer-496494

    Firefox allows you to custom style rules change or hide the triangles. An approach has been posted here: https://support.mozilla.org/questions/975184#answer-509823

    (I think it's specific to Windows 8.1, so most of the volunteers probably won't be able to get your hands on establish more specific).

  • Context menu to yahoo mail IN the context menu of firefox

    With yahoo *new e-mail format*, you must right-click on any custom folders, you made and choose * Remove * from the context menu, BUT this menu is often UNDER own Firefox context menu, it's impossible to click on anything on their.

    I've written for them, but as expected, they say that's not their fault.

    I was wondering if there is an option modifier key to temporarily disable the context menu of Firefox from popping up.

    Tools > Options > content - JavaScript > advanced...

    Disable or replace context Menus = checked

  • How to customize the context menu in the legend of plotting the graph of wave?

    I am currently on the creation of a simulation of various control loops as educational objectives. Here, I have a chart in waveform to different signals. Now my question, how to customize the context menu in the track of the Waveform graph legend => when I click on 'image' behind the Plotnames one menu to open options where you can customize the color etc. or plotwidth. But students should not have access to these settings. How can I change or disable this menu? The context menu for the waveform graph, I've already customized by right click on table of waveform-Advanced online-online menu, but for the legend of conspiracy, I have not found this setting...

    Thanks for your answers... I tried different things, but I don't see a solution yet :-(

    See you soon

    DCP

    Hi, STC,

    There have been a number of suggestions for change or disable the table , right-click menu, but I see that this does not affect the context menu of legend , which is what you ask for help with.

    To prevent completely the menu right-click to work, you must disable the chart control entirely. You can do this by double-clicking on the chart and select Advanced Options > active state > disabled. This will prevent the operator to be able to generate a menu right click on the chart control.

    If however you still wanted the table, make a right click menu to work, but the legend made a right-click menu will be disabled, I see two options:

    1. draw a classic decoration square on the legend and the transparent color. This will prevent the mouse clicks to achieve the legend, and transparent it will not interfere with your user interface appearance.

    2 use a Structure of the event to capture the event filter Popup Menu of Activation?  for the chart control. You can then use the Coords property to determine if the mouse is over the legend or not. If this is the case, send faithful away? right Terminal. It will refuse the context menu when the user clicks on the legend of the plot.

  • Problem VLC media player - option of the context menu "add to vlc media player playlist" disappear in the selection of multiple files.

    OK, here's my problem. I installed VLC. It works very well. I have 'Add to playlist in vlc meadia player' on the pop-up menu file.

    PROBLEM: If I select more than 16 files and then "Add to vlc meadia Player playlist" disappear from the file context menu.

    ANNOYING: This stupid Windows Media Player is still there.

    QUESTION: Why vlc disappear from the file context menu if I select more then 16 files but wmp doesn't?  Is M$ trying to force people to use WMP?

    I also did my OWN program and he added in the context menu, and I discovered that my OWN program has also 16 files limit.

    Why windows deletes non MS program context menu, if I select more than 16 files? How can I solve this problem? I want to have my custom context menu program, even if I select more than 16 files.

    How to fix this?

    Hello
     
    I ask you to post this question on the Microsoft Development Network forums.
    Here is the link:
    http://social.msdn.Microsoft.com/forums/en/windowspro-audiodevelopment/threads
     
    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • 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.

  • Make a gallery of images from the context menu

    Hi, Im quite new on the environment of the waterfall and I was wondering if its possible to do a custom context menu that allows you to browse different images, like this picture of a picasa Viewer. an Im talk is at the bottom of the image. IM thinking to use ListView inside the menu, but I'm not sure if its possible. I would also ask how to position where the contextual pop-up menu would be in a page. Any help, advice or even a link to an example of code would be appreciated. Thanks in advance

    Hello
    This level of control is not possible using the context menu, but I think you can easily simulate using several containers. ListView can be placed in the bottom one.

    A possible design is to use a DispositionAbsolue to drag the lower container in the view with animation. Set LayoutUpdateHandler to the main container to adjust the dimensions of the container on the rotation of the screen and get the size of the initial screen of the low container off the screen.

  • Context menu - edit the list item

    I've added context Menu items to the items on the list

    Something

    With the context Menu, I've added two elements, one for delete and quickly change an attribute of that object. The question is, how do you take the elementID the context menu I know what item to edit or delete?

    As I do with the onclick event.

    That's how I add the context Menu.

    var myItem = {actionId: '2', label: 'Remove', icon:'local:///images/icons/remove.png'},
            contexts = ["myContext"];
        blackberry.ui.contextmenu.addItem(contexts, myItem, function() {
            toast('You clicked Remove');
        });
        var myItem = {actionId: '1', label: 'Stop', icon:'local:///images/icons/stop.png'},
            contexts = ["myContext"];
        blackberry.ui.contextmenu.addItem(contexts, myItem, function() {
            toast('You clicked Stop');
        });
    

    Ideally, I would like to replace the automatic button 'Cancel' which shows with the "delete" button instead of creating an extra one for it.

    Thanks for any help!

    In fact, you can speciy this assistance in support for the webworks-Framework data as a JSON object. I have a blog sitting around that I still have to post... . So here's the gist of it:

    ((1 when you create the data webworks context attribute you can specify 2 types of data 1) a string or 2) a JSON object. The JSON object is in the following form:

    -"{'id': , 'type': , 'header': , 'subtitle': }" "

    These data will be analyzed by the custom context API JSON and set your headers when the CCM appears, as well as send it back the ID it was chosen for your reminder.

    2. This is why inside your reminder to add point put a parameter:

    var myItem = {actionId: '2', label: 'Remove', icon:'local:///images/icons/remove.png'},
            contexts = ["myContext"];
        blackberry.ui.contextmenu.addItem(contexts, myItem, function(Id) {
            toast('You clicked Remove on id:' + Id);
        });
        var myItem = {actionId: '1', label: 'Stop', icon:'local:///images/icons/stop.png'},
            contexts = ["myContext"];
        blackberry.ui.contextmenu.addItem(contexts, myItem, function(Id) {
            toast('You clicked Stop on id:' + Id);
        });
    

    Give that a shot and let me know how it goes

  • No cut, copy, don't paste the menu into OS6 EditField

    Hi people... I want to ask you if there is a known issue...
    The EditField works very well in OS5, but when I run the application in device OS6, context menu copy / paste does not appear...
    Can someone guide me on this please? Thanks people...

    I just tested and I get "Select", and then once I've selected text, get a copy.

    Can you give us a standard EditField code that does not work for you and describe the menu options see you and associated operating system levels?

    Also can you confirm if you test on the device or Simulator and what devices are involved?

  • Remove context menu items get Suggestions and add them to the dictionary

    How can I delete the 'get the Suggestions' and the items of the context menu "Add to Dictionary" for an EditField?

    I request this API targets 4.2 but running this application on 4.7 API (TOUR) presents these two new context menu items. Is it possible to disable the elements of pop-up to appear? I tried setting the indicator of EditField.NO_LEARNING but that does not work.

    Thank you.

    Found the solution. You must set the field. NON_SPELLCHECKABLE Pavilion on the style.

  • Extension of context Menu of existing applications

    Hello

    Is it possible to create an application that allows to extend the context menu of existing applications.

    for example to extend the popup browser so that if a user selects a word in a browser tab, a custom menu option will be visible that allows the user to perform actions on the selected word, expression etc...

    Or even more generic if any word/phrase is selected the custom menu option becomes visible.

    If the user selects the custom menu option, the application is launched to handle this action.

    Is this possible in webworks?

    Native API?

    Thanx, h.

    N °

  • Add context menu of the taskbar using the registry editor

    I am able to add context menu items in the background of the Office (HKEY_CLASSES_ROOT\DesktopBackground\Shell) or records (HKEY_CLASSES_ROOT\Folder\Shell) but I can't find the key needed to do this to the taskbar. What is it?

    As far as I KNOW, you can add items to the context menu of the taskbar. All we can add is deskbands and custom toolbars (if you are a programmer.)

Maybe you are looking for

  • How to access the information in my iCloud app?

    How can I open my iCloud account? Please tell me step by step.

  • Can't remove my iPod in itunes podcasts

    I download Radio 4 podcasts for my ipod Nano.  The part of the subscription will easily and podcasts download without problems.  But when I want to delete a podcast because I have already heard, it remains on the ipod or downloads again the next time

  • gifts of money

    Hello can I withdraw the money given by me to balance with another account

  • underground WARNING symbols

    Hello world I made this chart to track my fuel consumption and as you can see told me that you can not divide by zero, but when I have numbers in the two boxes, it works fine. So please tell me how to get rid of the red triangle and leave the box bla

  • shows how to create the cluster of refnum user event

    I try to understand and copy this sup - VI, but I have problem in the construction of this cluster of refnum user event, and how to build the local variable? \