ToolTips for menu

How can I set a ToolTip for a menu item?

For example, in the contacts built in app when I press and hold the icon search the ToolTip "Search" appears.

You need bbUI version 0.9.6.144 or later, those included in the bed for example BlackBerry uses 0.9.6.126. Adding tooltips is relatively recent.

BCR.

Tags: BlackBerry Developers

Similar Questions

  • How can I remove worm of ToolTip for the clayout engine

    What is the program of ToolTip for Clayout engine and how to remove it safely?

    Hi Albertwolfman,

    ·         You receive an error message or error code during the uninstallation of this program?

    I suggest you scan your computer with the Microsoft Security Scanner, which would help us to get rid of viruses, spyware and other malicious software.

    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

     

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Important: During the scan of the hard drive if bad sectors are found, the scanner tries to repair this sector, all available on which data may be lost.

    Let us know if that helps.

  • ToolTip for the button

    Nice day

    I'm new to the blackberry development. I created a bitmapbuttonfield using the examples of the advanced user interface. There is a button with an image. I want to display a ToolTip for the button when the button receives the focus. Can someone please help

    Thanks in advance

    Hello

    Use this code:

    package mypackage;
    
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    
    public final class MyScreen extends TooltipScreen
    {
    
        ButtonField btn1,btn2,btn3;
        public MyScreen() {
    
            btn1=new ButtonField();
            btn1.setChangeListener(new FieldChangeListener() {
                public void fieldChanged(Field field, int context) {
                    Dialog.alert("Button 1 Click");
                }
            });
            btn2=new ButtonField();
            btn2.setChangeListener(new FieldChangeListener() {
                public void fieldChanged(Field field, int context) {
                    Dialog.alert("Button 2 Click");
                }
            });
    
            btn3=new ButtonField();
            btn3.setChangeListener(new FieldChangeListener() {
                public void fieldChanged(Field field, int context) {
                    Dialog.alert("Button 3 Click");
                }
            });
            add(btn1, "Button 1");
            add(btn2, "Button 2");
            add(btn3, "Button 3");
    
        }
    
    }
    
    package mypackage;
    
    import java.util.Timer;
    import java.util.TimerTask;
    import java.util.Vector;
    
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.XYRect;
    import net.rim.device.api.ui.container.MainScreen;
    
    public class TooltipScreen extends MainScreen {
    
        TooltipScreen screen = this;
        boolean doRedraw = false;//prevent infinte redrawing
        Vector tooltips = new Vector();//vector to hold tooltip strings
        private Timer tooltipTimer = new Timer();
        private TimerTask tooltipTask;
        boolean alive = false;//is the tooltip alive? used to pop it after our timeout
        int count = 0;//used to calculate time tooltip is displayed
        //tooltip popup colours:
        int backgroundColour = 0xeeeeee;
        int borderColour = 0xaaaaaa;
        int fontColour = 0x666666;
        //the tooltip:
        String tooltip;
        int tooltipWidth;
        int yCoord;
        int xCoord;
        //region parameters:
        XYRect contentArea;
        int contentBottom;
        int contentRight;
    
        public TooltipScreen() {
            super();
    
            //when timeout reaches 100ms*20 ie. 2seconds set alive to false and redraw screen:
            tooltipTask = new TimerTask() {
    
                public void run() {
                    if (alive) {
                        count++;
                        if (count == 20) {
                            alive = false;
                            invalidate();
                        }
                    }
                }
            };
    
            tooltipTimer.scheduleAtFixedRate(tooltipTask, 100, 100);
    
        }
    
        //override add method adds an empty string to tooltip vector:
        public void add(Field field) {
            tooltips.addElement("");
            super.add(field);
        }
    
        //custom add method for fields with tooltip: add(myField, "myTooltip");
        public void add(Field field, String tooltip) {
            super.add(field);
            tooltips.addElement(tooltip);
        }
    
        public void setColours(int backgroundColour, int borderColour, int fontColour) {
            this.backgroundColour = backgroundColour;
            this.borderColour = borderColour;
            this.fontColour = fontColour;
        }
    
        //reset everything when user changes focus,
        //possibly needs logic to check field has actually changed (for listfields, objectchoicefields etc etc)
        protected boolean navigationMovement(int dx, int dy, int status, int time) {
            count = 0;
            alive = true;
            doRedraw = true;
            return super.navigationMovement(dx, dy, status, time);
        }
    
        protected void paint(Graphics graphics) {
            super.paint(graphics);
            if (alive) {
                Field focusField = getFieldWithFocus();
                tooltip = (String) tooltips.elementAt(screen.getFieldWithFocusIndex());
    
                //don't do anything outside the norm unless this field has a tooltip:
                if (!tooltip.equals("")) {
                    //get the field content region, this may fall inside the field actual region/coordinates:
                    contentArea = focusField.getContentRect();
                    contentBottom = contentArea.y + contentArea.height;
                    contentRight = contentArea.x + contentArea.width;
    
                    //+4 to accomodate 2 pixel padding on either side:
                    tooltipWidth = graphics.getFont().getAdvance(tooltip) + 4;
    
                    yCoord = contentBottom - focusField.getManager().getVerticalScroll();
                    //check the tooltip is being drawn fully inside the screen height:
                    if (yCoord > (getHeight() - 30)) {
                        yCoord = getHeight() - 30;
                    }
    
                    //check the tooltip doesn't get drawn off the right side of the screen:
                    if (contentRight + tooltipWidth < getWidth()) {
                        xCoord = contentRight;
                    } else {
                        xCoord = getWidth() - tooltipWidth;
                    }
    
                    //draw the tooltip
                    graphics.setColor(backgroundColour);
                    graphics.fillRect(xCoord, yCoord, tooltipWidth, 30);
                    graphics.setColor(borderColour);
                    graphics.drawRect(xCoord, yCoord, tooltipWidth, 30);
                    graphics.setColor(fontColour);
                    graphics.drawText(tooltip, xCoord + 2, yCoord);
                }
            }
            //doRedraw logic prevents infinite loop
            if (doRedraw) {
                //System.out.println("redrawing screen: " + System.currentTimeMillis());
                screen.invalidate();
                doRedraw = false;
            }
        }
    }
    
    package mypackage;
    
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Manager;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.container.PopupScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    
    class MyTooltip extends PopupScreen{
        int _x;
        int _y;
        TooltipThread _tooltipThread;
    
        private MyTooltip(Manager manager) {
            super(manager);
         }
        public void sublayout(int width, int height)    {
            super.sublayout(width,height);
            setPosition(_x,_y);
            System.out.println("Tooltip x: " + Integer.toString(_x) + ", y: " + Integer.toString(_y));
        }
        protected void applyTheme() {
            // Overriden to suppress Border etc.
        }
        public void removeToolTip() {
            if ( _tooltipThread != null ) {
                _tooltipThread.dismiss();
            }
        }
        private void display(UiApplication uiApp, int x, int y, int displayTime) {
            _x = x;
            _y = y;
            _tooltipThread = new TooltipThread(uiApp, this, displayTime);
            _tooltipThread.start();
        }
    
        public static MyTooltip addToolTip(UiApplication uiApp, String toolTipString, int x, int y, int displayTime) {
            VerticalFieldManager manager = new VerticalFieldManager(Manager.FIELD_VCENTER|Manager.NON_FOCUSABLE) {
                protected void paint(Graphics graphics) {
                    graphics.setColor(0x00FFFFFF); // White
                    graphics.fillRect(0,0,getWidth(),getHeight());
                    graphics.setColor(0x00000000); // Black
                    graphics.drawRect(0,0,getWidth(),getHeight());
                    super.paint(graphics);
                }
            };
            MyTooltip toolTip = new MyTooltip(manager);
            LabelField label = new LabelField(' ' + toolTipString + ' ', LabelField.NON_FOCUSABLE);
            label.setFont(Font.getDefault().derive(Font.PLAIN, 16));
            toolTip.add(label);
            toolTip.display(uiApp, x, y, displayTime);
            return toolTip;
        }
    
        class TooltipThread extends Thread {
    
            Object _notifyObject = new Object(); // Used to allow user to dismiss this Tooltip
            PopupScreen _tooltip; // Screen we are going to display
            UiApplication _ourApplication; // access to pushGlobalScreen and dismissStatus from our Application
            int _displayTime; // in seconds
    
            public TooltipThread(UiApplication ourApplication, PopupScreen tooltip, int displayTime) {
                _tooltip = tooltip;
                _ourApplication = ourApplication;
                _displayTime = displayTime;
            }
    
            public void run() {
                _ourApplication.pushGlobalScreen(_tooltip, 999, false);
                synchronized(_notifyObject) {
                    try {
                        _notifyObject.wait(_displayTime * 1000);
                    } catch (Exception e) {
                    }
                };
                _ourApplication.dismissStatus(_tooltip);
            }
    
            public void dismiss() {
                // notify the waiting object to stop the Thread waiting
                synchronized(_notifyObject) {
                    _notifyObject.notify();
                }
            }
    
        }
    
    }
    
  • Dynamic ToolTip for button

    Hello world

    I want to use only a single button for multiple uses.

    I want the ToolTip for this button is changed when I change the end of it.

    But the problem is that we declare the ToolTip on TipTable for each widget.

    This means that we don't have one channel for each widget.

    Is it possible to customize and give him more than a balloon?

    Thanks in advance.

    Hi Duy-NV-Niteco,

    You can replace the iterface id on your boss IID_ITIP touch by your own implementation of the ITip interface.

    Markus

  • ToolTip for interactive reports

    Hi, how can I add ToolTip for interactive report column headings...


    Thank you
    Nihar Narla

    Hello

    This might help
    http://dbswh.webhop.NET/HTMLDB/f?p=blog:read:0:article:2311800346467196

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • ToolTip for the button previous and next in trainButtonBar

    I'm not able to view the ToolTip for the buttons next and previous by using trainButtonBar. Can someone help me on this?

    Published by: 952401 on August 13, 2012 05:50

    Hey Vinay... I think you can try this
    Required fields in a train

    It was exactly the solution you need.

    Thank you
    Serge

  • ToolTip for af:outputLabel

    Can I display a ToolTip for an af:outputLabel?

    Use the attribute shortDesc

    Sample:

    shortDesc = "ToolTip for the output Label" / >

    Thank you
    Nini

  • ToolTip for the table of the ADF

    Hi all

    I am developing web app using jdeveloper 11.1.2

    I have a table dragged and droped on my web page.

    I want to add a ToolTip for each line in the quantity column

    I want to show tooltip as credit if amount < 0 and flow if quantity > 0

    Please tell me how to do this

    Consider using an af:noteWindow:'t-fit-all.blogspot.com/2008/10/jdev-11g-adf-faces-rc-new-component.html http://one-size-doesn

    CM.

  • ToolTip for shuttle

    Hello

    Based on several posts in the forum, I created a shuttle service with different features. As the elements of text cannot be wrapped in the shuttle, I wanted to create a ToolTip so that the user can see all the text. I managed to create a when the user clicks on an element. But I would really like to display the ToolTip for < font color = "red" > onmouseover < / police > event.


    Here's what I have so far:

    < b > header < /b > html Page
    <script type="text/javascript">
    
    function displayHelp(event, pItem) {
    var cnt = 0;
    var ind = 0;
      for(var i=0; i < pItem.length; i++) {
        if(pItem.selected) {
    cnt++;
    ind = i;
    }
    }
    if(cnt == 1) {
    toolTip_enable(event, pItem, pItem[ind].text);
    }
    }

    </script>

    <head>
    <style type="text/css">
    #P1_VISITED_LEFT option{color:red}
    #P1_VISITED_RIGHT option{color:green}
    </style>
    </head>
    and <b>HTML FORM ELEMENT ATTRIBUTE</b> contains the following:
    style = width: 350px; onclick = "displayHelp (Event, this); »
    I am using Apex 3.2 but the same works in Apex 4.0 as well. I have created an application at http://apex.oracle.com/pls/apex/f?p=37387:1:955210098693100:::::
    
    
    Any help is appreciated in making this work for <font color="red">onmouseover</font>
    
    
    
    Thanks,
    Rose                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    Hello

    I use the jQuery code below for the list of selection mouseover tooltip. For the shuttle, it should work

    $(function(){
          $('option').each( function(){
            $(this).attr('title', $(this).text());
      });
    });
    

    Kind regards
    Shijesh

  • 11g: how to disable the ToolTip for gauge?

    Hello

    DVT:graph and dvt: gauge (type = LED) displays a ToolTip by default when you move the mouse over the series or leads.

    With dvt:graph you can set the property markertooltiptype to "MTT_NONE" in order to avoid this default ToolTip.
    For dvt: gauge, I can't find such a possibility.

    How to disable the default ToolTip for dvt: gauge too?

    Jdev 11.1.1.0.2

    concerning
    Peter

    Hi Peter,.

    For a gauge, the best way to turn off the ToolTips is to use the attribute renderImagemap with imageFormat = "PNG". For example:

    If instead, you decide to customize the ToolTips of the gauge, you can use the alt attribute to shapeAttributes (without the renderImagemap = 'false'):





    Hope this helps,
    Hugh

  • ToolTips for the image (e.g. on xkcd) do not show

    I'm on firefox 11 (aurora) now. Since about 7 FF, image ToolTips, such as those on the xkcd comic, do not appear when I hover over them. This is even if the Web sites use standard html correctly ("title" attribute used for ToolTips).

    This can result from the Google Toolbar or Direct2D.

    See http://support.mozilla.org/en-US/questions/751043

  • Different widths for menu items

    Hello! I'm something obvious missing probably here, but I can't figure out how to set individual width for each menu item in the horizontal menu widget.

    The duration of my menu items varies and I lose lots of space, if they are all as wide...

    Fenja

  • Hello! I need help for menu vertical Adobe Muse! very urgent!

    Hello!

    How to make a menu like this one in adobe Muse: http://www.bryanschutmaat.com/

    -vertical menu with submenu vertical

    Thank you!!

    To do this, you can use an Accordion widget with a custum style.

    IF you are looking for Terry White, Muse, accordion, you will find video tutorials on YouTube.

  • Added keyboard shortcuts for menu items created by the script. Is this possible?

    Hi all

    I wanted to create a custom script menu and assign (on the numeric keypad) shortcuts to the menu items so that I could run a script with small changes rather than change a few (currently seven) scripts separated and assign a shortcut to each of them. But now, I realized that the custom menus are not visible in the "Keyboard shortcuts" dialog box (What a disappointment!)

    Am I missing something here? Or is there a workaround?

    1.jpg


    My idea was to trigger the main script - floating Tables.jsx - from the Manager menu item from the menu title as an argument.

    var tableMenu = app.menus.item("$ID/Main").submenus.item("Table");
    
    // "Floating Tables" sub-menu
    try {
        var subMenu = tableMenu.submenus.item("Floating Tables");
        subMenu.title;
    }
    catch(err) {
        var subMenu = tableMenu.submenus.add("Floating Tables", LocationOptions.AT_END);
    }
    
    var topLeftAction = app.scriptMenuActions.add("Top Left");
    var topLeftListener = topLeftAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var topLeftMenuItem = subMenu.menuItems.add(topLeftAction);
    
    var topCenterAction = app.scriptMenuActions.add("Top Center");
    var topCenterListener = topCenterAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var topCenterMenuItem = subMenu.menuItems.add(topCenterAction);
    
    var topRightAction = app.scriptMenuActions.add("Top Right");
    var topRightListener = topRightAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var topRightMenuItem = subMenu.menuItems.add(topRightAction);
    
    var bottomLeftAction = app.scriptMenuActions.add("Bottom Left");
    var bottomLeftListener = bottomLeftAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var bottomLeftMenuItem = subMenu.menuItems.add(bottomLeftAction);
    
    var bottomCenterAction = app.scriptMenuActions.add("Bottom Center");
    var bottomCenterListener = bottomCenterAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var bottomCenterMenuItem = subMenu.menuItems.add(bottomCenterAction);
    
    var bottomRightAction = app.scriptMenuActions.add("Bottom Right");
    var bottomRightListener = bottomRightAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var bottomRightMenuItem = subMenu.menuItems.add(bottomRightAction);
    
    var backToTextAction = app.scriptMenuActions.add("Back to Text");
    var backToTextListener = backToTextAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var backToTextMenuItem = subMenu.menuItems.add(backToTextAction);
    
    function FloatingTablesHandler(event) {
        var args = [event.parent.title];
        app.doScript(mainScriptFile, ScriptLanguage.JAVASCRIPT, args, UndoModes.ENTIRE_SCRIPT, "\"" + scriptName + "\" Script");
    }
    
    
    
    
    
    
    
    
    
    
    


    The main script reads the argument as follows:

    alert("The argument -- " + args[0]);
    
    


    If my memory is good, of Rorohiko's APID ToolKit can create "Assignable shortcut" menus I don't know this for sure at the moment because these menus a long time ago.

    BTW, the question was asked here, but he has failed.

    Kind regards

    Kasyan

    Hi Kasyan,

    If what you're asking, is if it is possible to assign a keyboard

    shortcut in the usual way with a menu created by a script item and then

    of course, of course you can.

    Add the menu item and then assign some k.shortcut you want-

    you will find your menu items in the 'Scripts' category in the keyboard

    Shortcuts dialog box.

    Ariel

  • ToolTip for the answer gives no optimal help message

    View using Chrome "19.0.1084.56 m '.

    The forum for each post there is a link to the answer to the right of the message header.

    When my pointer is placed on this link of the ToolTip "click to reply to this topic.

    Indeed, clicking on answer will respond to the message.

    So in my humble OPINION the tip should be more correctly "click to reply to this message.

    .....

    The link to reply to this thread that appears top left under the bread crumbs and the subject thread title actually reply to the thread (ie the original poster).


    It is a minor comment and a personal point of view.

    OK, but I don't think it will be high on the list of changes, a new forum is in preparation.

Maybe you are looking for

  • HP Envy m6 1105dx: best replacement hard drive for HP Envy m6 1105dx

    Hello and thanks for your help! For the second time I have to replace the hard drive in HP Envy laptop computer 1105dx my son m6.  Get the automatic repair of preparation and can not recover using the recovery discs.  It is tough, very tough, with th

  • Increase in CPU abruptly when you open my main VI

    Hi, this may be a silly question. I develop a GUI recently and I that when I opened my main VI (is not running), the CPU usage increases significantly more 40%. I'm using Labview 2015. Does anyone have an idea of how this happens? PS: The CPU is redu

  • issues running in another computer vi

    Hello I finished a vi (labview 2009) and converted to .exe file run in another computer. I installed the runtime 2009 and also drivers for usb845x (the vi uses this data acquisition) and when I pluged the acquisition of data windows (xp) says this ne

  • update the window "WindowsUpdate_00000643" error code

    I'm trying to update the window on a computer hp laptop vista Home Edition I get this error windows cannot install "WindowsUpdate_00000643". Can you please help

  • HP w2207h monitor (volume)

    new monitor for me - no longer have any volume- I used the silver on the lower right of the screen button to reduce the volume and now it won't turn back on - tried all the sites help / have you a live webcam chat - directed me to this site.  no inst