Context menu behavior

Develop with the 4.2 version of the JDE

I'm confused about how the system behaves with context menus: I have a class form that inherits from the screen, containing an ObjectList for which I have provided a makeContextMenu function.

I expect makeContextMenu that will be called when the user clicks on the trackball on one of the items of an ObjectList, but it seems to be called when the user presses the menu button.  Confusingly, onMenu dominant in the class of the screen indicates that when the user clicks on the trackball, the instance parameter is INSTANCE_CONTEXT, and when it is INSTANCE_FROM_MENU_KEY on the menu key, so I expected makeContextMenu to be called when the ObjectList has focus.

Am I missing something, or do I need to substitute the makeMenu of the screen to get the desired behavior (context menu only when the user clicks the track-ball, full menu when you press the menu key)?

You can control this by substituting makeMenu.  Please see below for more information.

How to make the distinction between a full menu and a menu of primary action
Article number: DB-00565

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

Tags: BlackBerry Developers

Similar Questions

  • Failed to create the menu popup JavaScript with to display the context Menu with the help of add behaviors

    Whenever I load a page with this added behavior and test it with my link, I get a message "error on Page".

    Here's what I do:

    Create a new HTML page in Dreamweaver 8.0.2 and save it.

    Add a hyperlink in the Insert-> menu hyperlink. Do not put anything in it except a few example of text; "THIS IS a TEST", or something.

    Select the hyperlink and choose "Show the context Menu" in the tag behaviors menu tab ' + '. The dialog box will appear.

    Add a single item and add a link to a page. Do not change the other options. Click OK to close the dialog box and the code will be added to the page.

    Save the HTML page again and press F12 to load the page on your test server and display them in a browser.

    Hover your mouse over the link to test. Nothing happens and there is a message in the status bar at the bottom of the browser, "error on Page".

    OK, it works. I saw the source file that are listed there, but I assumed that Dreamweaver would be to download the file with the HTML file to test on my test server. Usually, I'm prompted to download all the dependent files. Is there an exhibitor or dreamweaver do not miss this link?

    I'm sold on convictions explained in the rants you have linked, but only after I see that Dreamweaver menus don't work. It is not entirely necessary for my completely dependent users of my menus, they are only a feature of page layout.

    Since I have the ear, maybe you could tell me something before my attempt it: is it possible to generate the JavaScript using PHP? I would like to include JavaScript in the context of records with PHP MySQL. Is there another possible solution from PHP? I guess that ASP is a solution already and maybe Flash too.

    This is the kind of page I'm working on that:

    http://www.symbiota.com/MiloTrial/witnesses.php

    I would like to see a drop down menu for each trial where the number of witnesses is less than 10 to save someone the trouble to open a new page just to see a list of ten names.

  • Behavior of Win7 context Menu function

    On 1 machine Win7, right click Print available, when you select a PDF file. On another machine, is not.

    What gives this command in the context menu? How to add?
    The two 64-bit.

    Hello

    1. where exactly you right-click to print?
    2. don't you make changes to the computer before the show?
    3. you have Adobe flash player last version installed?

    Try the following steps.
    a. click the Start button.
    b. click "all programs."

    c. scroll down to "accessories.

    d. right-click on "Command Prompt" and "Run as Administrator"

    e. click on Yes in the user account control window that appears
    f. the command prompt window is now open and active

    g. type regsvr32 "C:\Program Files (x 86) \Adobe\Acrobat 10.0\Acrobat Elements\Contextmenu64.dll".
    h. press ENTER.

    If the steps above fail, I suggest you post.
    http://forums.Adobe.com/index.jspa?view=overview

  • context menu of files lists apps twice

    In some cases I don't want to use the application allocated to a type of files. E. g. opening a PDF with adobe reader, but adobe acrobat professional.

    To do this, I place a right-click for the shortcut menu; Then, I select the application you want in the list.

    But each app is listed twice for several weeks. I have no glue, what to do. And since I realized this, it happened by chance that I have to wait s until you get the context menu.

    I don't know, but it is possible that this strange behavior is presented after the last update of El Capitan. This update caused a system blocked; I could not connect as a user more. I solved this problem blocked by resettlement El Capitan.

    My system: MacBook Pro 13', El Capitan, 1Toctet HARD drive at the end of 2011.

    Same behavior after reinstall El Capitan.

    Same behavior using SSD 1 TB (Samsung 850 Evo, CCC-clone)

    Same behavior from Mo via external HDD or SSD (CCC-clones, attached via USB).

    Any idea to solve this problem of double apps listed in the context menu?

    Thanks in advance!

    Lit-Serv

    Boot mode safe.

    http://support.Apple.com/kb/PH11212

  • Explorer.exe crashes by clicking the context menu items

    Hi guys,.

    I have XP Professional SP3 and when I right click on a file and select a voice as 'open' or 'open with' from the context menu, explorer.exe crashes...

    The description of the error event is (in Italian):

    "Application che ha provocato error explorer.exe, version 6.0.2900.5512, modulo che ha provocato error unknown, version 0.0.0.0, address error 0 x 00000000."

    By further information, using the guide in linea e supporto tecnico all' address http://go.microsoft.com/fwlink/events.asp. »

    What can I do?

    Thank you

    I'm sorry that I can't read your beautiful Italian, but problems with a right-click are most often caused by a third-party software that inserts entries in the context menu. You can fix the latter with ShellExView free utility.

    http://www.nirsoft.net/utils/shexview.html - ShellExView

    Make a right-click is slow or weird behavior caused by context menus management - http://windowsxp.mvps.org/slowrightclick.htm
    Manage entries context menu for folders, drives and Namespace objects - http://windowsxp.mvps.org/context_folders.htm

    MS - MVP - Elephant Boy computers - don't panic!

  • Context menu appears several times on its own! Windows 7 Home Premium

    I can hardly get anything accomplished on my desk more because the context menu appears on its own again and again, and I have to click anywhere on the screen until it goes away. Help!

    Hello

    1 follow these steps to remove corruption and missing/damaged file system repair or replacement.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN

    sfc/scannow

    How to fix the system files of Windows 7 with the System File Checker
    http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.html

    How to analyze the log file entries that the Microsoft Windows Resource Checker
    (SFC.exe) program generates in Windows Vista (Windows 7 also) cbs.log
    http://support.Microsoft.com/kb/928228

    Then, run checkdisk - schedule it to run at next boot, then apply OK your way out, then restart.

    How to run check disk in Windows 7
    http://www.SevenForums.com/tutorials/433-disk-check.html

    -----------------------------------------------

    2nd - Contextual Menu (right click) troubleshooting questions are an exercise of the elimination process.

    Make a right-click is slow or weird behavior caused by context menus managers
    http://WindowsXP.MVPs.org/slowrightclick.htm
    and here:

    Manage the entries in the context menu for files, folders, disks, and objects in the Namespace
    http://WindowsXP.MVPs.org/context_folders.htm

    The ShellExView utility displays the details of shell extensions installed on your
    computer, and you can turn on and off easily each shell extension.
    http://www.NirSoft.NET/utils/shexview.html

    ShellMenuView is a small utility that displays the list of static menu items that
    appears in the context menu when you right click on a file/folder on Windows
    Solution Explorer, and allows you to easily disable unwanted menu items.
    http://www.NirSoft.NET/utils/shell_menu_view.html

    How to change or remove items from the right click Menu.
    http://www.WinVistaClub.com/E11.html

    I hope this helps.
    --------------------------------------------------------------------------------------------
    Rob Brown - Microsoft MVP<- profile="" -="" windows="" experience :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Cannot turn off bluetooth from the option of the family disappeared in the context menu of Tablet

    Hello

    Well, I installed Win 7 on my X61t, as well as new software from Lenovo, and I can't understand how to disable bluetooth now. I used to do that via the context Menu in tablet, I had radios settings there and I could turn off/turn on the WiFi and Bluetooth separately there. Now, I have only one option of radio wireless disable, which basically does the same thing as the wireless switch, so it's a bit useless.

    I guess that option could have dissaperaed because I have not installed logins now (and I can't install it because I'm fine with what I get with 7).

    So, how can I disable BT now? I tried through the taskbar icon, I tried via the Control Panel, through network connections, even through the Device Manager. Even when I disable all BT devices and connections Bluetooth LED remains on, so it is not totally disabled at the hardware level. Of course, so I want to be able to turn off quickly, as I did through the context menu of the Tablet, via the control panel is not really a solution anyway.

    Oh, and I don't know if it's important, but the Bluetooth light is on all the time during the boot now, and I don't think that it was before. Although maybe I just never used on startup with bluetooth turned on, so I didn't notice... here, not sure.

    Any ideas?

    Thanks, has soon!

    Dear Stansfield

    Hope a low-tech suggestion works for you.
    Have had a similar experience with the portability of devices two radio WLAN and Bluetooth individually vs black & white radio power.

    Found I needed to load the last shortcut key driver in your case for a X 61 Tablet 7764 CTO,
    http://www-307.IBM.com/PC/support/site.WSS/document.do?sitestyle=Lenovo&lndocid=MIGR-68009

    Then use the combination Fn and F5 (in blue) instead of other options in some menus of the Windows user interface.
    And voila, I found that the behavior has been defined in the "Fn + F5 parameters" button at the bottom of the pop-up window, the second box option
    "Alternate between turn off all wireless radios and by turning on all radios.
    instead of the first choice that I wanted
    'Display a menu that allows me to control the parameters of power to radio wireless in my system individually.

    Had the behavior corrected, and now he's doing what I want to happen.
    It will be useful for you, too.

    concerning
    Mika

  • (bb10) How to cancel an opening from context menu

    I have a strange behavior with context menus.

    I have two lists in my application with two context menus, a menu for each list.

    I have a logic to determine if the popup should be launched or not, and if I don't stop ContextMenuEvent.OPENING event, this menu is not started. Fine. But after that, the menu popup stops working for the other list.

    I think that something in the ContexMenu classes must be left in a bad state after preventDefault on the opening ceremony.

    What will be the best way to stop to open a context menu and still works for the other components?

    See the example...

    package
    {
        import flash.display.Bitmap;
        import flash.display.BitmapData;
        import flash.display.Sprite;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.events.Event;
    
        import qnx.fuse.ui.actionbar.ActionBar;
        import qnx.fuse.ui.core.Action;
        import qnx.fuse.ui.core.ActionBase;
        import qnx.fuse.ui.core.ActionSet;
        import qnx.fuse.ui.core.TabAction;
        import qnx.fuse.ui.events.ContextMenuEvent;
        import qnx.fuse.ui.events.DragEvent;
        import qnx.fuse.ui.listClasses.List;
        import qnx.ui.data.DataProvider;
    
        public class TestPush extends Sprite
        {
            private var actionBarOverflow:Sprite;
            private var content:Sprite = new Sprite();
    
            private var slideX:Number = 0;
    
            public function TestPush()
            {
    
                super();
    
                // support autoOrients
                stage.align = StageAlign.TOP_LEFT;
                stage.scaleMode = StageScaleMode.NO_SCALE;
                stage.addEventListener( Event.RESIZE, function( e:Event ):void
                {
                    actBar.y = stage.stageHeight - actBar.height;
                } );
    
                content.addChild( new Bitmap( new BitmapData( stage.stageWidth, stage.stageHeight, false, 0xffffff ) ) );
                // support autoOrients
                stage.align = StageAlign.TOP_LEFT;
                stage.scaleMode = StageScaleMode.NO_SCALE;
    
                var dp:DataProvider=new DataProvider();
                dp.addItem({"label":"item1"});
                dp.addItem({"label":"item2"});
                dp.addItem({"label":"item3"});
                dp.addItem({"label":"item4"});
                dp.addItem({"label":"item5"});
                dp.addItem({"label":"item6"});
                dp.addItem({"label":"item7"});
                dp.addItem({"label":"item8"});
                dp.addItem({"label":"item9"});
                dp.addItem({"label":"item10"});
                var list:List=new List();
                list.dataProvider=dp;
    
                actionBarOverflow = new Sprite();
    
                var actBar:ActionBar=new ActionBar();
                actBar.showTabsFirstOnBar(false);
                actBar.reserveActionSpace(true);
                actBar.backButton = null; 
    
                actBar.tabOverflowParent = actionBarOverflow;
                actBar.width=stage.stageWidth;
                actBar.showTabsFirstOnBar(false);
                actBar.addAction(new TabAction("TEST"));
                actBar.addAction(new TabAction("TEST2"));
                actBar.addAction(new Action("Test1"));
                actBar.addAction(new Action("Test2"));
                actBar.addAction(new Action("Test3"));
    
                var list2:List=new List();
                list2.dataProvider=dp;
    
                addChild(actionBarOverflow);
                addChild( content );
                content.addChild(list);
                content.addChild(list2);
                content.addChild(actBar);
    
                actBar.x=0;
                actBar.y=stage.stageHeight-actBar.height;
    
                list.width=list2.width=stage.stageWidth;
                list.x=list2.x=0;
                list.height=(stage.stageHeight-actBar.height)/2;
                list2.height=(stage.stageHeight-actBar.height)/2;
                list.y=0;
                list2.y=list.height;
    
                list.addEventListener(ContextMenuEvent.OPENING, contextOpening);
    
                var actionsForBar:Vector. = new Vector.;
                actionsForBar.push(new ActionBase("Action 1"));
                actionsForBar.push(new ActionBase("Action 2"));
                var actionset:ActionSet=new ActionSet(actionsForBar);
                var contextactions:Vector.=new Vector.();
                contextactions.push(actionset);
    
                var actionsForBar2:Vector. = new Vector.;
                actionsForBar2.push(new ActionBase("Action 3"));
                actionsForBar2.push(new ActionBase("Action 4"));
                var actionset2:ActionSet=new ActionSet(actionsForBar2);
                var contextactions2:Vector.=new Vector.();
                contextactions2.push(actionset2);
    
                list.contextActions=contextactions;
                list2.contextActions=contextactions2;
    
                actBar.addEventListener( DragEvent.DRAG_MOVE, onDragMove );
            }
    
            private function contextOpening(e:ContextMenuEvent):void{
                trace("CANCEL OPENING");
                e.preventDefault();
            }
    
            private function onDragMove( event:DragEvent ):void
            {
                slideX += event.deltaX;
                content.x = Math.round( slideX + stage.stageWidth );
            }
        }
    }
    

    Although strobejb could be a solution, it involves a lot of changes to my code at the moment, but I think I found a good solution.

    Instead of dealing with ContextMenu I forget and override onLongPress extension from the list.

    override protected function onLongPress (): void {}

    }

    And if I have to display the context menu I can make inside the method with:

    showContextMenu()

  • Context menu prevent from appearing when you click on?

    I get the context? menu (the one with the full Menu and options Show/Hide keyboard) when I press (touch screen) or click on a field in a listechamps.  I don't know why.

    I extended ListField as follows:

    public class TableField extends ListField {
        TableFieldCallback callback;
        public void setTableCallback(TableFieldCallback callback) {
            this.callback = callback;
        }
        protected boolean trackwheelClick(int status,int time) {
            App.DEBUG("CLICK START " + time);
            if (null != callback) callback.onclick(this.getSelectedIndex());
            App.DEBUG("CLICK CONSUMED");
            return true;
        }
    }
    

    The domain manager that contains this field implements TableFieldCallback and sets the callback object.

    The scope of the list does not contain child field, rather than the 'data' are set for each field.

    I press list (click on) a field (line) in the field and trackwheeClick() is called calls my onclick() method in my object and is processed (it loads another opinion), but the context menu is displayed, even if I returned true from trackwheelClick() of signs that I have consumed the event.

    This behavior is unacceptable, I need a way to be able to disable the context menu when you click on the field ofc.

    Note: the full menu appears sometimes, but I guess that's because I also accidentally click / tap the full menu option in the context menu that... maybe its because the context menu Gets the event of publication in the press / click don't know.

    Hey to return true on nothandled touch clear also

    and for the contact not returning true not managed navigationClick should do the job.

  • What happened to "Show the context Menu" in Dreamweaver CS6?

    I use Dreamweaver for several years now and through several different versions. In Dreamweaver 8, under behaviors, I had "Show the context Menu" as a way to create attractive menus. In CS6, it is gone now. Is there a way to recover or at least another way to add context menus?

    The menus that were part of the old version of DW using javascript have been deprecated.  In addition, the CS6 Spry functionality has been deprecated.  As a result, you end up with a few options.

    Option 1 - get an add-on Exchange (Adobe Modules ) or third-party sources like PVII ( Projectseven.com - products ).

    Option 2 - consider a framework or a CMS that comes with a menu drop down menu code or UI admin option keep the menu.

    Because you always have a menu on your website, for now, you should be able to modify the code in order to maintain the menu, but moving forward I would definitely look for an alternative solution.

  • Maintaining exaggerate in the context Menu generated Fireworks 8

    Hi all

    Some of you may be aware of small JavaScript changes you can make to the Fireworks generated code when creating a context menu that allows the active to keep frame image overstate by positioning the mouse on a pop up element.

    I used this code successfully with menu items which all the gererate a context menu. However, when you change the code (basically, cutting function MM_swapImageRestore(); from the html page and place it in the js file) when I have one or more menu item which don't spawn pop up menu sub menu spawning non-pop-up element upsets the behavior of code.

    On positioning the mouse a menu item contextual spawning directly on an item of menu spawning non-pop-up the item popup spawning retains its exaggerate fram image and does not perform the swapImageRestore(); function.

    Does anyone know of JavaScript code adjustments that are necessary to allow the mixing of pop up and non-pop-up spawn menu items that allow the raster image exaggerate to be retained by positioning the mouse on a menu laid?

    Thank you for your comments and suggestions.

    PS I don't have other suggestions of context menu that I focus on solving this specific problem with this post.

    Thank you.

    Nick Barling
    barkingweb.com

    Talking to myself again. After a week of silence definition I guess nobody knows the solution to this problem? Well, I solved the problem with a bit of manipulation of code and the menus work fine now.

  • Want to auto fill a context menu

    Hello! I'm looking for a way to auto fill a context menu with the data of a column on a separate sheet. On sheet 1, I have a bunch of product names in column A (with their prices and taxes from columns B.). On the sheet 2, column A, I would choose the products required for this project in a context menu (drop-down) which includes all items on sheet 1, column A.

    I have a lot of products listed in sheet 1, column A, so it is not practical for each context menu manually. I also need to add more products to sheet 1, column a quite regularly, so need it to update automatically. I can't for the life of understand me. Any help would be much appreciated.

    I'm using 3.6.2 for Mac numbers.

    Hi Liz,

    We do not have the feature of auto filling of the popups at this time. In other words, we don't have popups that will update when a column is revised.

    It may be that you work hard for you to complete your pop-up windows. If you have a column of items, select and change the format of "popup" each of these cells is a popup with all values in your column. You can copy and paste them to your other journal and he use it.

    A while back I developed an applescript script to automate this process, but it is still a process that must be run-it introduces himself. Let me know if you are interested and I'll see if I can dig it up.

    Quinn

  • How to add "Look it up in lexicon" to the context menu?

    Hi all! The title says it is in fact... When I highlight a word in a text donnΘ, is possible to add an item to the context menu - > search in the lexicon or Contextual menu - > Services - > search in the lexicon (or whatever it may be called).

    I mean by local "lexicon" built in the dictionary as part of Mac OS (El Capitan in my case).

    Any help will be greatly appreciated!

    Try to open system preferences > keyboard, look in the tab shortcuts.

    Title services in the sidebar, there should be a section 'search' with an option to activate the context menu item 'search in the dictionary'. Allow it to appear in the right click menu "contextual".

    p.s. This is an earlier operating system, it may have changed.

  • Why doesn't the mouse click on the tab context menu more displays the option to move the tab to a different group.

    When I click right click on a tab, the context menu no longer offer to move this tab to another group.

    What's new since 38.05

    Why was this feature depricated?

    I've got 38.0.5 on Win 7 x 64 Fx.

    You already have a userChrome.css file to change the user interface of Firefox? It is the only other method that comes to mind to hide a menu item. You can find such a file in this way:

    Open the settings folder (AKA Firefox profile) current Firefox help

    • button "3-bar" menu > "?" button > troubleshooting information
    • (menu bar) Help > troubleshooting information
    • type or paste everything: in the address bar and press Enter

    In the first table of the page, click on the view file"" button. This should launch a new window that lists the various files and folders in Windows Explorer.

    Look for a folder named chrome , and if you find it, click on inside.

    Any userChrome.css file here? If so, you can open in a text editor and view its contents to see if it looks familiar.

    Or maybe your program files have been damaged in the upgrade. This happens from time to time, with unpredictable results. To remedy this situation, I would suggest:

    Clean reinstall it

    We use this name, but it isn't about deleting your settings, this is to ensure that the program, files are clean (no incompatible or exotic code files). As described below, this process does not disrupt your existing settings. Don't uninstall NOT Firefox, that does not need.

    (1) download a fresh Installer for Firefox 38.0.5 of https://www.mozilla.org/firefox/all/ in an ideal location. (Scroll down your preferred language).

    (2) close Firefox (if applicable).

    (3) to rename the program folder:

    (Windows 64-bit folder names)

    C:\Program Files (x86)\Mozilla Firefox
    

    TO

    C:\Program Files (x86)\OldFirefox
    

    (Windows 32-bit folder names)

    C:\Program Files\Mozilla Firefox
    

    TO

    C:\Program Files\OldFirefox
    

    (4) run the installer you downloaded in the #1. It should automatically connect to your existing settings.

    You can get reinstalled Firefox?

    Note: Some plugins can only exist in this OldFirefox file. If it is missing something essential, present in these files:

    • \OldFirefox\Plugins
    • \OldFirefox\browser\plugins
  • Just updated to 38.0.5 and now when I right click on a bookmark to edit, the context menu is grayed out and it won't let me. Why?

    I read a lot of web comics, so I change the bookmarks for them on a daily basis on the last page on each site. I just tried to do that tonight after you install the 36.0.5 update, now when I right click on the bookmark in the menu, I have yet to get the context menu, but all the options are greyed out. He was most certainly not in this way the last night before the update. That is what it is?

    Oops, it's probably the bug to customize. After using customize it, most of the items on the context menu are gray to the bookmarks Menu in the classic menu bar.

    It does not affect the button drop-down bookmarks menu *, and it does not affect the bar Favorites (Ctrl + b). And if you launch a new window (Ctrl + n), he works on the menu bar, too. Very strange.

    I don't know when this is going to get it fixed but at least you know a few places to access the properties for the moment.

    Which doesn't seem to be the problem?

    One on the taskbar near the star

Maybe you are looking for

  • Removable usb drive

    Removable disk

  • Update of Windows 8 stuck at 0%

    Hello, I'm trying to update my Windows 8 to 8.1 Windows but he asked me to do the important updates for Windows 8 before im able to continue out to 8.1.So that the of exactly what I tried to do, but whenever I tried to install all the updates that he

  • Install Windows 8 - cannot find my SSD disk hard - HP envy 4 ultrabook - 1046TX

    I downloaded the upgrade of windows 8 for $14.99 and have managed to create a boot usb device. I was able to run the installer until the stage where windows has found hard drives. I have an SSD and windows is unable to find it during the installation

  • Can I run Palm Desktop 4.1.4 E or 4.2 on VISTA? Compatible?

    When I go to Palm downloads and find 4.1.4 and 4.2 versions of Palm Desktop they both are compatible with Win XP and 2000, NOT Vista. I don't want to run 6.2 on my Vista, even if it works, because they have problems with the calendar color and birthd

  • Problem with cache in Apex 4.2

    I have an application built to Apex 4.2It worked very well for several weeksI did not bring any changes to the codeSuddenly, he developed what seems to be a cache problem.If I enter the search criteria; It displays the results. I enter a different se