How to remove the added by BrowserContent menu item

I have an application where a browser obtained from browserContent.getDisplayableContent () field is added to the main screen. This adds 'Selection Mode', 'Page View' and 'Find' menus. How can I get rid of these. I overrode protected makeMenu Sub (menu Menu, int for example), but the menu items do not fade.

protected void makeMenu(Menu menu, int instance)
{
    Field focus = UiApplication.getUiApplication().getActiveScreen().getLeafFieldWithFocus();
    if(focus != null)
    {
        ContextMenu contextMenu = focus.getContextMenu();
        contextMenu.clear();
        this.getContextMenu().clear();
    }
}

My request is basically similar to the example of BrowserFieldSampleApplication.java, which is part of the SDK.

Thanks for your help

I managed to solve it this way. In my class that extends the screen, I substituted makeMenu():

protected void makeMenu(Menu menu, int instance)    {        menu.deleteAll();     menu.add(myMenuItem1);        menu.add(myMenuItem2);        super.makeMenu(menu, instance);    }

The deleteAll() method removes all menu items - then I add my own menu items. Finally, super.makeMenu (calling) adds the "Close" menu item

Tags: BlackBerry Developers

Similar Questions

  • How to get the cursor hand on Menu items?

    I want the cursor hand on menu items. I can get the main menu but not on the dots cursor.

    Please help, thanks in advance.

    Atul

    Hello

    If you want handcursor on menuitems put these properties on the label of the menuitem.

    useHandCursor = true;
    buttonMode = true;
    mouseChildren = false;

    If this post answers your question or assistance, please mark it as such.

    Thank you

    Jean Claude Chari.S

  • Remove the Trash: no 'File' menu item click on! Where is he?

    I want to remove all the waste in a single step. Recommended procedure, I found said click on 'File' and go from there... but THERE IS NO 'FILE' POINT to THE CLICK on! Why I having to hunt for it? Why is it not part of the default screen?

    If you want that your Thunderbird to match the help pages, turn on the old toolbars. Press alt or F10 to make the convocation of menu bar. Select display-toolbars, and then turn them on.
    You must do this in each window.

  • How to remove the search box in the Windows 7 Start Menu?

    I'm a guy from keyboard. Encoder, mudder. Therefore, I prefer my Start menu for user-friendly keyboard, which includes the removal of the search box as the focus of pigs. I can't find this option in the control panel to the taskbar and Start Menu. I lack, or it is impossible to get the classic Windows, looking for the start menu?

    I forgot on the thing... If you want to remove the search box, try this: start > Control Panel > programs > Turn Windows features or disable > uncheck Windows Search

    ...

    I said that you can press Tab... wrong... you must press SHIFT + Tab.

    ...

    About to express my opinion - there is a simple reason why I do this. Some time ago, someone asked how to remove the search box, and it received no response for a few days. After that, I found this option, how to remove... When I said on this subject after a few days, I heard that this person used to this new feature of Windows and now it will keep it. I'm not saying that your opinion is wrong... this system differ only from XP... so we have to try to learn something new and check after a few days we don't like this solution more than the previous.

    ...

    I wonder why write you in commentary edition which has pasted the link almost not worth it. You will get exactly the same behavior of Menu start as in Windows XP. I thought that you, like this old solution... "Pinning just something that mimics the classic style"... No... you have clicked on the first link... you should read more prudent. There was also another. But even if you have selected the first solution with menu PIN... I guess you don't know that you can run all the pinned programs by pressing the Windows key + number... for example, WinKey + 1, so that each action is made without a mouse.

  • How to remove the menu by default oracle froms 6i

    How to remove the default window menu Oracle forms 6i.

    Amatu Allah Neveen Ebrahim wrote:

    As Salamu Asalam we Rahmatu Allah we Barakatu,.

    How are Hamid, you?

    The OP wondered about: form Menu of the window no.

    Best Regatds,

    Amatu Allah.

    Walikum As Salam O Rahmatillahi we Barakatu, sister Amatu Allah.

    Alhumdolilah. How about you?

    Average don't want to see window menu name?

    Oh, so that's that.

    1. quastion in THE HOW TO REMOVE MENU 'WINDOW' of ORACLE FORMS

    Hamid

  • How to remove the menu open-link browserfield

    I using hv browserfield for the ad, I hv to invoke the browser, set to protocolhandler
    (I have defined hv navigation mode - circumflex)

    but clicking on this first screen menu as open the link, I want to open the link directly it how can I do?

    Hi Pierre,.

    Try the override of the method onMenu() of the screen and iterate over the menu item, if the text of the menu item "Open link" as the run() call this menu item method.

    Something like this:

    {} public boolean onMenu (int instance)
    If (instance == Menu.INSTANCE_CONTEXT) {}
    Recover main menu
    Menu MainMenu = this.getMenu (Menu.INSTANCE_DEFAULT);

    numItems int = mainMenu.getSize ();
    for (int i = 0; i)< numitems;="" i++)="">
    CurItem MenuItem = mainMenu.getItem (i);
    String name = curItem.toString ();
    If ("Open Link".equals (name)) {}
    curItem.run ();
    break;
    }
    }
    Returns false;
    } else
    Return super.onMenu (instance);
    }

    So resolute thn press Bravo.

  • How to remove the spaces of a template header

    I'm trying to work myself through the understanding of the html codes using a model dreamweaver and creating a page for my company. I used dreamweaver before CC, but I try to understand the new changes.

    I came across a problem with the fact that I'm hoping to get help.

    I tried to replace a logo placeholder on the template with my own logo. I seem to have a little space to white at the bottom of the logo when I see mode live view or a browser. How can I get rid of him. I've tried combinations of 0 margins and changing the filling, but it seems I'm just whistling in the dark. Here is the code:

    The CSS associated with this page is here:

    !-[CodeBlockStart:dec9d6ff-17ba-4058-9575-0b88476c1251]-->@charset "UTF-8"; body {make: 100% / 1.4 Verdana, Arial, Helvetica, without serif;}]   background-color: # 42413.   margin: 0;   padding: 0;   Color: #000; } / * ~ ~ Tag of the element selectors / ~ ~ * / ul, ol, dl {/ * because of variations between the browsers, it's best practices to zero padding and the margin on lists.} For consistency, you can specify the amounts you want to here, or on the list (LI, DT, DD) items they contain. Don't forget that what you're doing here cascade to the .nav list unless you write a more specific selector. * / padding: 0;   margin: 0; } h1, h2, h3, h4, h5, h6, p {margin-top: 0; / * deletion of the top margin works around a problem where margins can escape its container block.} The margin of the low rest it will take away from all of the following items. * / padding-right: 15px;   padding-left: 15px; / * adding padding to the sides of the elements within the blocks, instead of the block elements themselves, gets rid of any mathematical model of box. A block nested with side pads can also be used as an alternative method. {* /} an img {/ * this switch how to remove the default blue border displayed in some browsers around an image when it is surrounded by a link * / border: none ;} / * ~ ~ style for your site links must remain in this order - including the Group of selectors that create the hover effect.} ~ ~ * / a: link {color: # 42413;}   text-decoration: underline; {/ * unless that you style your links seem to be extremely unique, it is best to predict stresses quick visual identification * /} a: visited {color: #6E6C64;}   text-decoration: underline; } a: hover, a: active, a: focus {/ * this group of selectors will give a browser keyboard the same experience of hovering as the person who uses a mouse. * / text-decoration: none ;} / * ~ ~ this container fixed-width surrounds all the other blocks ~ ~ * / .container {width: 960px;}}   background-color: #FFFFFF;   margin: 0 auto; {/ * set to auto on the sides, coupled with the width available to the centres * /} / * ~ ~ the header is not given a width. It will extend to the entire width of your layout. ~ ~ * / header {background-color: #A36BE8 ;} / * ~ ~ these are the columns for layout.} (~ ~ 1) padding is only placed on the top and/or bottom block elements. The elements contained in these blocks have padding on their sides. This avoids any «mathematical model of box» Keep in mind, if you add lateral pads or border to the block itself, it will be added to the width that you set to create the * total width. You can also remove the padding of the element in the block element and place a second inner block with no width element and the necessary padding for your design. (2) no margin was given to the columns, because they all floated. If you need to add the margin, avoid placing on the side you're floating into (for example: a right margin on a block set to float to the right). Many times, padding can be used instead. For blocks where this rule needs to be broken, you need to add a statement of ' display: inline ' to the rule of the block element to tame a bug where some versions of Internet Explorer double the margin. (3) given that the classes can be used several times in a document (and an element can also have several classes applied), the columns have received the names of classes instead of IDs. For example, two blocks from the sidebar could be stacked if necessary. These can easily be changed to the ID if that's your preference, as long as you don't use them once per document. (4) If you prefer your nav on the left instead of the right, just float those columns the opposite direction (to the left instead of all rights), and they will return in reverse order. There is no need to move the blocks in the HTML source code. * / .sidebar1 {float: right;}   Width: 180px;   background-color: #C5C2B8;   padding-bottom: 10px; } content {padding: 10px 0;}   Width: 780px;   float: right; } / * ~ ~ This group selector gives the lists in the domain content space ~ ~ * / content ul, ol content {padding: 0 15px 15px 40px; / * this padding reflects the right padding in the titles and the paragraph above net.} Padding was placed on the bottom for the space between the other elements in the lists and on the left to create the withdrawal. These can be customized as you wish. {* /} / * ~ ~ The list of navigation styles (can be removed if you choose to use a contextual menu premade as Spry) ~ ~ * / nav ul {list-style: none; / * this command deletes the list marker * / border-top: 1px solid #666; / * this creates the top border for the links - all others are placed using a bottom border on the LI * / margin-bottom: 15px; / * it creates space between the following content browsing * /} nav li {border-bottom : 1px solid #666; {/ * Creates the separation of button * /} has nav, nav a: visited {/ * these selectors of grouping allows you to ensure that your links to retain their look button even after visiting * / padding: 5px 5px 5px 15px;}   display: block; / * Gives the link properties block causing it to fill the whole container LI. This causes the entire area responds to a mouse click. * / Width: 160px;  / * This width makes all the clickable button for IE6. If you do not need to support IE6, it can be removed. Calculate the width by subtracting the padding on this link of the width of your sidebar container. * / text-decoration: none;   background-color: #15EE00; } nav a: hover nav a: active, nav a: focus {/ * this changes the background and color of text for browsers of mouse and keyboard * / background-color: #ADB96E;}   color: #FFF; } / * ~ ~ Footer ~ ~ * / footer {padding: 10px 0;}   background-color: #CCC49F;   position: relative; / * This gives hasLayout IE6 to erase correctly * / clear: both; {/ * This clear property forces the .container to understand where the columns end up and contain them * /} / * HTML 5 support - sets new HTML 5 tags to display: block so browsers know how to render the tags correctly. * / section, footer, said by the way, article, header, figure {display: block ;}}

    Thank you very much for your help!

    Try this-

    What you are because space is the placeholder for the descenders of glyph on any item that is rendered in a text box (that is, an inline element). By making the image "display: block" you eliminate that space, because a block element is not top-down. If it works to your satisfaction then you can give the logo an id and creation of a CSS selector that contains this kind of block.

  • How to remove the message "not using current Version" boring?

    For months, my Firefox home page included a note that I do not have the latest version and provides a link to update. When I use the link I said "Congratulations, you are using the latest version." Adding insult to injury, there are not 20 minutes, I downloaded 27, and the message is still there. Almost the end of the world, but at this point, it is very annoying. How to remove the message?

    The old page of Google-Firefox has not changed since Firefox 4 is released, please disregard the information updated on this page.

  • Please tell me exactly how to remove the AVG search function

    Please tell me exactly how to remove the AVG search function

    edited by a moderator for clarity

    You need not repeat dozens of times or use profanity to get help.

    (1) disable all non-essential or unrecognized extensions on this tab. Don't know what it does? When in doubt, turn off:

    Firefox orange (or the Tools menu) button > addons > Extensions category

    Use the links above a disabled extension to restart Firefox if some seem to.

    (2) restore your Google search engine:

    https://addons.Mozilla.org/en-us/Firefox/addon/SearchReset/

    (3) check a user.js file (before the release of Firefox, otherwise the parameters in this file can cancel your cleaning) as described in this article: How to fix preferences that will not save.

    (4) If AVG search took over your page to the new tab (Ctrl + t), which changes as follows:

    (A) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (B) in the filter box, type or paste newtab and make a pause so that the list is filtered

    (C) double-click the preference browser.newtab.url and enter the desired value for your favorite page:

    thumbnails (i) (default) Page = > subject: newtab

    (ii) blank tab = > subject: empty

    Firefox homepage integrated (iii) = > topic: welcome

    (iv) any other page = > full URL of the page

    IMPORTANT: If you have AVG software in your Windows Control Panel, you need to remove it.

  • How to remove the download button located next to my home button? I continue to by clicking on it when I want the House and it's annoying.

    How to remove the download button located next to my home button?

    You can use customization feature to move it to a less irritating location. I suggest the bar the module if you keep this poster.

    Start customizing with one of these, and then drag the arrow to a new location, or in the dialog box to remove all the bars:

    • Right click on a zone empty of the tab bar > customize
    • Press the Alt key > menu view > toolbars > customize

    You will notice that some combined controls separate in the view to customize. If you put something between them, they will not be able to recombine. (For example, if you separate stop and reload or put something between front/rear and area URL.)

  • Satellite L30 - how to remove the modem?

    Hello

    I have try to disable BIOS modem on my L30-113, but I found no! I try to remove physical modem, I have no chance, it's on board!

    How to remove the modem? What I have to shut off the power to the modem and the jury do not, or a mod BIOS whit menu disable the modem?

    Thank you!

    Can you please be so kind and explain why you want to disable/remove modem?
    Sorry, but I don't see any reasonable reason for it.

    If you use it, you can disable the device in Device Manager and he'll be dead for OS.
    By the way: on low budget laptops I guess it's on board.

  • any ideas on how to remove the software malicious zebrouss?

    any ideas on how to remove the software malicious zebrouss?

    This thing I replaces my setting of search in safari - can get rid of it - don't know who got it

    You may have installed ad-injecting malicious software ("adware").

    Do not use any type of product, "anti-virus" or "anti-malware" on a Mac. It is never necessary for her, and relying on it for protection makes you more vulnerable to attacks, not less.

    Save all data first.

    Some of the most common types of adware can be removed by following the instructions from Apple. But before you follow these instructions, you can try an automatic removal.

    If you are not already running the latest version of Mac OS X ("El Capitan"), update or upgrade in the App Store you could adware to automatically remove. If you are already using the latest version of El Capitan, you can still download the current update of the Apple Support downloads page and run it. Still, some types of malware will be deleted, not all. There is no such thing as the automatic removal of all possible malware, either by OS X third party software. That's why you can't rely on software to protect you.

    If the malware is deleted in your case, you will still need to make changes to the way you use your computer to protect you from new attacks. Ask if you need advice.

    If the malware is not automatically deleted, and you cannot remove yourself by following the instructions from Apple, see below.

    This simple procedure to detect any type of adware that I know. Disabling is a procedure distinct and better still.

    Some legitimate software is funded by advertising and may display advertisements in its own windows or in a web browser while it is running. It's not malware and it may not appear. In addition, some Web sites display advertising intrusive popup that can be confused with adware.

    If none of your web browsers work well enough to carry out these instructions, restart the computer in safe mode. Allows to temporarily disable the malware.

    Step 1

    Please triple - click on the line below on this page to select it, and then copy the text to the Clipboard by pressing Control-C key combination:

    ~/Library/LaunchAgents

    In the Finder, select

    Go ▹ go to the folder...

    from the menu bar and paste it into the box that opens by pressing command + v press return. Open a folder named "LaunchAgents", or you will get a notice stating that the file cannot be found. If the file is not found, proceed to the next step.

    If the folder opens, press the combination of keys command-2 to select the display of the list, if it is not already selected. Please don't skip this step.

    There should be a column in the update Finder window. Click this title two times to sort the content by date with the most recent at the top. If necessary, enlarge the window so that all the content show.

    Follow the instructions in this support article under the heading "take a screenshot of a window." An image file with a name starting in 'Screenshot' should be saved to the desktop. Open the capture screen and make sure it is readable. If this isn't the case, capture a small part of the screen indicating that what needs to be shown.

    Start a reply to this message. Drag the image file in the editing window downloading. Alternatively, you can include text in the response.

    Leave the case open for now.

    Step 2

    Do as in step 1 with this line:

    /Library/LaunchAgents

    The record which can open up will have the same name but is not the same as in step 1. In this step, the folder does not exist.

    Step 3

    Repeat with this line:

    /Library/LaunchDaemons

    This time the file will be called "LaunchDaemons."

    Step 4

    Open Safari preferences window and select the tab 'Extensions'. If the extensions are listed, post a screenshot. If there are no extensions, or if you cannot launch Safari, skip this step.

    Step 5

    If you use Firefox or Chrome browser, open the list of extensions and do as in step 4.

  • How to remove the support contact at screenshot using the "home" button

    guys, please help, how to remove the support contact at screenshot using the "home" button? I use 6 s ios 9.2, but when I take screenshot with the menu help key, the help key disappear on my photo, but the problem is, I want to take screenshot with my home button, please help... Thank you

    What turned the problem into a screen with the home button? Quickly, you press the power off button and home together and release - if the sounds are enabled - you should hear the camera shutter sound and have the capture in your app screen shots. The help key is not displayed

  • How to remove the virus once safty scan

    How to remove the virus once safty scan

    Hello

    You do not say what program you use

    There should be an option in any security program you are using to delete, remove, clean or quarantine (depending on how it is formulated).

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    If by other means, you have download and installed a fake security program, which is in fact malware. follow these steps:

    Scan of Malware in Safe Mode with network.

    http://www.bleepingcomputer.com/tutorials/how-to-start-Windows-in-safe-mode/#winxo

    Windows XP

    Using the F8 method:

    1. Restart your computer.
    2. When the machine starts first, yet once it will list usually some equipment that is installed on your machine, amount of memory, hard drives installed etc. At this point you should tap the F8 key repeatedly until you are presented with a menu of Advanced Options in Windows XP.
    3. Select the Safe Mode with networking option using the arrow keys.
    4. Then press enter on your keyboard to start safe mode.
    5. Make all the necessary tasks and when finished restart to start in normal mode.

    Once in Safe Mode with network, download and run RKill.

    RKill does NOT remove the malware; It stops the Malware process that gives you a chance to remove it with your security programs.

    http://www.bleepingcomputer.com/download/rkill/

    Then, download, install, update and scan your system with the free version of Malwarebytes AntiMalware in Mode safe mode with networking:

    http://www.Malwarebytes.org/products/malwarebytes_free

    See you soon.

  • How to remove recipient to send to menu in Windows Explorer

    HOW TO REMOVE RECIPIENT TO SEND TO MENU DROP-DOWN IN WINDOWS EXPLORER

    HOW TO REMOVE RECIPIENT TO SEND TO MENU DROP-DOWN IN WINDOWS EXPLORER

    Start button > in the search box, type shell: sendto > Enter.

    In the window send worms, on the right side > right click on the recipient of the message > remove

Maybe you are looking for