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

Tags: Java

Similar Questions

  • How can I make a slideshow with the buttons previous and next to autoplay

    Hello

    I did an automatic reading of the previous slideshow with buttons and next, when I saw the site and press one of the buttons need me back to the front, BUT automatically stops.

    first possible keep the slide show playback even I press any button?

    Thank you

    SebastianScreen Shot 2013-07-29 at 1.15.52 PM.png

    Slideshows of auto playback can only be interrupted when a trigger or the Prev / next icon is clicked. And once paused, the page must be reloaded so that the feature of AutoPlay slideshow for re - initialize. Feel free to add an idea to our ideas section.

    Thank you

    Vinayak

  • Slideshow button previous and next does not work, someone has the same problem?

    When I put more than two slide shows on stage, the button previous and next stop work.

    Hi Bernard! Finally, I solved the problem. I put borders (area) in the upper layer than the layers of the slide show. =/

    Now, works great. Thank you very much for the help!

    Home

  • 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();
                }
            }
    
        }
    
    }
    
  • Why are the buttons back and next connected to the address bar now?

    I can't put update and cancel each other more.

    It has apparently been decided

    • This is the logical place for the button.
    • It saves space having an Adaptive button that has two functions in one.
    • I note also, if you have the search bar and place between her buttons and the address bar space flexible, locks and you can not make optimal use of the space by expanding the bar which is used.

    Firefox is moving to a practice to require addons for many modifications and customizations. At least an addon will make Firefox look more like older versions and will then allow the buttons to be separated and moved.

  • Where is the drop down the arrow next to the button previous and following which has provided a list of previously seen web pages?

    before firefox 4.0 as I could go directly to a page, several pages back by clicking on the drop down arrow, then click on the address of the desired site. I must now click on the back button again and again until I reached the desired site. What a pain! lack of this feature alone makes me want to go back to version 3.6XXX

    You can get the menu drop-down by clicking on the previous/next buttons or now the left key pressed until the list is displayed.

    If you want the drop-down arrow, you can add it with the add-on of dropmarker rear - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • How to make the script a buttons previous and next to navigate between fields using the navigation sequence?

    I want to put in "next" as well as "Previous section" buttons on the top of my page, aside from the arrows in the table of contents. I put a browse sequence. But I am unalbe to describe the buttons. Can anyone help please.

    Thank you.

    Hello

    You're definitely on the right track. The problem is that you cannot use a path "hard" for images. It may work for the subjects to the root, the directory images can exist. It may not work for the subjects, because the correct path would be something like '... /... / Images /'.

    In addition, you must add the images as baggage files to your project. If you only use the images in a script, RoboHelp does not recognize them as resources.

    I've updated you above the article. He now understands how to use images like browse buttons in the sequence.

    Take a bow

    Willam

  • Compare the record previous and next in a table

    I have the dataset that looks at below:

    Name | DocType

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

    A PDF FILE
    A DOC
    B PDF
    B PDF
    B XLS
    C PDF
    D XLS
    D PDF
    D XLS
    F PDF
    F PDF
    G PDF
    H XLS

    Need a way to be able to add an additional column based on the values in the name column and Doctype.

    Name | DocType | Status

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

    A duplicate PDF
    A duplicate DOC
    B duplicate PDF - PDF multi
    B duplicate PDF - PDF multi
    B duplicate - Multi PDF XLS
    C PDF Unqiue
    D XLS duplicate
    Duplicate PDF D
    D XLS duplicate
    Duplicate PDF - PDF multi F
    Duplicate PDF - PDF multi F
    G single PDF
    H single XLS

    Logic to use is, check the column name, if there are multiple entries with additional verification of same name DocType, if there are multiple entries for PDF and then mark status as «Double - Multi PDF»
    If there are multiple entries for the name column, but only one of these entries is the PDF, then mark the status as duplicate.
    If there is only one entry per name, no matter that the Doctype, mark the status of "Single".

    Let me know if the problem needs more explanation.
    Thank you.

    Published by: 934827 on May 16, 2012 14:03

    Hello

    Here's one way:

    WITH  got_cnts     AS
    (
         SELECT     name
         ,     doctype
         ,       COUNT ( CASE
                             WHEN  doctype = 'PDF'
                       THEN  1
                       ELSE  NULL     -- Default, but it doesn't hurt to say it
                         END
                    )   OVER (PARTITION BY name)     AS pdf_cnt
         ,       COUNT (*) OVER (PARTITION BY name)     AS name_cnt
         FROM     table_x
    )
    SELECT    name
    ,       doctype
    ,       CASE
               WHEN  name_cnt = 1  THEN  'Single' -- or 'Unique'
               WHEN  pdf_cnt  > 1  THEN  'Duplicate - Multi PDF'
               WHEN  pdf_cnt  = 1  THEN  'Duplicate'
           END          AS status
    FROM       got_cnts
    ;
    

    If you would care to post CREATE TABLE and INSERT statements for your sample data, and then I could test this.

    What do you do if there are multiple lines with the same name, but none of them have doctype = 'PDF '? Depending on your answer, you do not have a subquery.

  • Previous and Next buttons

    Hello

    I made a slideshow and I want to put the buttons "previous" and "next" inside.

    I tried to find some tutorioals but without success.

    Does anyone know where to find a tutorial for that?

    Thank you

    Poul

    Hello

    Here is a slideshow tut:

    http://paultrani.com/2013/07/how-to-create-a-slideshow-in-edge-animate/

  • Configure the Previous and Next buttons

    Is it possible to configure the buttons back and forward in the play by slide bar? I have seen that you can disable the PlayBar by blade, which would be another option, but I don't have a subscription service or ASA, so I do not have access to these features. I wish I could control what slides these buttons will make you.

    Hello

    It is not possible to configure the next/previous buttons on the PlayBar.

    However, you can disable the playback bar and put some action buttons PowerPoint which, once clicked will be the user to the desired slide.

    Thank you

    ALPI

    Adobe engineering team

  • Where is the button refresh and the drop down menu the menu to go to previous tabs

    Usually, there is a button to refresh/reload the page in its current state. You can also click Next for the "previous or next page" arrows and have a list of pages viewed before if you can select one of them to go back to not necessarily just the previous page. I guess you could just keep clicking on the arrow to the left, but it is really not satisfactory. I used these two features all the time and it is a definitive failure in the new version.

    Combined Stop/Go/Reload button

    From Firefox 4, the Go, the buttons Stop and reload are combined into a single button at the right end of the toolbar URL or address. The button changes depending on the type of activity:

    • green arrow GB when you type in the address bar
    • Red Stop ("X") button while the page is loading
    • Reload (circular arrow) to gray when the page is finished loading.

    There are separate buttons:

    1. Open the Customize the toolbar by clicking the Firefox button > Option > toolbars OR by clicking View > toolbars > customize if using the menu OR bar right click in an empty space on a toolbar and select Customize
    2. Stop and Reload buttons will show separate from the address bar and the search bar
    3. Drag the buttons anywhere on the Navigation toolbar
      • order Reload-Stop will bring together into a single button
      • order Stop-Reload will remain in separate keys
      • or drag a 'Separator' or 'Space' in the window customize between Reload-Stop and they will remain separate OR separated the two buttons with any other button
    4. Click done at the bottom right of the window customize to finish

    See: https://support.mozilla.com/en-US/kb/how-do-i-customize-toolbars

    Button front/rear

    To access the history tab on the previous/next button, you can:

    • Right-click on the previous/next button
    • HOLD the left click button rear until appears the menu drop-down

    You can also install this add-on to restore the marker drop on the previous/next button:

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • Can you is more middle - click on the buttons back and forward to open the most recent last/next page as a new tab?

    I use Firefox 26, and I remember at some point in the past you could middle - click on the buttons back and forward to open the most recent last/next page as a new tab. Now, it does not work. I have not changed anything else on Firefox I know works, so was it gradually as keyword.url or is this something else?

    ... OK, this is weird. I restarted Firefox in safe mode and the reworked for/back Middle-click, so I thought it was one of my modules. Yet once, I opened Firefox in normal mode... and Middle-click works.

    I have no idea.

  • Is it possible to move 'previous' and 'next' in the library?

    Is it possible to move 'previous' and 'next' in the library?

    For example, I'm editing Symbol_1, then I go to Symbol_22. Now to return to Symbol_1, I need to find it in the library and double-click it. Is there a shortcut for that?

    No, but you can always use the search option of library gradually the number of displayed items. It would be a good feature request that I find myself jumping between the depths specific movieclip on common clips often. A bit like a bookmark clip/depth.

  • Why are what the buttons 'Clear' and 'Junk' repleased with the button 'archive' (only for one of the accounts)?

    Hello

    I must have changed a parameter, so that the 'Clear' and 'Junk' buttons above the mail pane disappeared, and a button 'Archive' appeared instead. It is true that for my mail via Gmail (IMAP), but when I opened an e-mail from my account (POP), I still see the button 'Clear' and 'Junk '.

    How can I fix?

    Thanks in advance
    Ayse

    Try this:

    Select an e-mail who don't watch all the correct buttons in the section above the message header information itself.

    Right-click on the empty area just above 'Other Actions', you should get a window saying 'customize '.
    Click on "Customize."
    opens in a new window.
    You can drag items on the header area, but I suggest that you click on the 'Restore Default Set' button, then click on the "Done" button.

  • How to disable the button create and edit button in IMPORT environment for all the modules of 6.1.1.1?

    Hi all

    I am trying to disable some built-in options for all modules as well as all users in paragraph 6.1.1.1.

    How to disable the button create and edit button in IMPORT environment for all the modules of 6.1.1.1.?

    Please help me solve this problem.

    Thank you

    Nefertari

    Thank you Ivy, Yes.

    I made some changes more in environment settings that helped me to turn off the button the user create a user/edit.

    Thank you

    Nefertari

Maybe you are looking for