focus button problem

Hi friends,

I want information on

When I select a button and I am pressing this button after pressing it is in a State of liberation in this State, that I want to change the button color.

That's my problem how to do this type of event.

Please tell me if you now.

It is urgent for me

Nice link.

You might also find something useful here:

http://supportforums.BlackBerry.com/T5/Java-development/implement-advanced-buttons-fields-and-manage...

Tags: BlackBerry Developers

Similar Questions

  • How select (focus) button bydefault.

    Hello

    Please tell me how select (focus) button bydefault.

    onDisplay() instance method of your screen, run the following code:

    yourButtonField.setFocus ();

  • Focus cursor problem: I can't get my cursor will appear in a search box

    Original title: Focus cursor problem

    I can't get my cursor will appear in a search box (e.g., Google, amazon.com, etc.) in Firefox Version 16.  It seems to be a kind of focus problem.  Is it a Firefox problem or a problem of Windows 7?  Could this be a script problem?  Thanks for any ideas on how to solve this problem.

    Hi Letaiyo,

    You are welcome.

    I am happy to learn that the problem is solved!

    Your efforts to solve this problem is appreciated.

    Thank you for sharing your information on the way in which you solved the problem.

    In the future if you fall on any question relating to Windows, please do not hesitate to post your request here on Microsoft Community, we will be more than happy to help you.

    Thank you.
  • Focus BasicEditField and buttons problem

    Objective:

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

    To develop Blackberry app without sequence of focus problem when using the BB with trackpad

    The problem:

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

    I have 5 BasicEditFields and 5 buttons. All objects are aligned vertically. When I move the finger on the trackpad, update doesn't move from one BasicEditField to another, some are fried, and this happens also with buttons, for example, when the focus is on the first button in the row, and then for some reason when I move the finger on the trackpad button next emphasis is not the one below , but attention "jumps" to the last button. Is possible to set 'order of sequence focus' or something like that?

    If you have Blacberry with touchscreen is not a problem, but if develop you some app for example BB Curve 9360 which has only trackpad, so you cannot select all items.

    Software used:

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

    Eclipse SDK Indigo version 3.7.2.

    BlackBerry Java plug-in 1.5.0.201112201607

    Operating system:

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

    Win7 64 bit

    Well, I have the solution

    Don't know why it works, but it does.

    I did two things:

    1.)

    I replaced .add with insert and then add Index numbers

    2.)

    This added to the code:

    protected boolean navigationMovement (int dx, int dy, int, int time status) {}
    Returns false;
    }

    I tried without step 2). but then focus jump bad, in any case, it now works as it should.

    Thank you all for your time and your suggestions.

  • Focus button HorizontalFieldManager on Storm problem

    I have data exploited these forums looking for a solution but found nothing.  The application I've created has a title bar with 3 fields - previous button, label, next button.  Very simple and the layout works very well.  You cannot set the focus to the right button in the simulator of storm.  You can use the keyboard to navigate to it and click back.  But the keys do not work on this button.  If I change the center field to be a button, it works for the Center button.  Never for the right button.  I think it's a bug, but if you know a whole work please let me know.  Here is the code:

             // create previous button, current label, next button        ButtonField prev = new ButtonField("Prev", ButtonField.FOCUSABLE | ButtonField.CONSUME_CLICK);        _label = new LabelField("My Label", Field.FIELD_HCENTER);        ButtonField next = new ButtonField("Next", ButtonField.FOCUSABLE | ButtonField.CONSUME_CLICK);
    
    HorizontalFieldManager header = new HorizontalFieldManager(HorizontalFieldManager.USE_ALL_WIDTH)//HorizontalFieldManager.USE_ALL_WIDTH | HorizontalFieldManager.NO_HORIZONTAL_SCROLL)//HorizontalFieldManager.USE_ALL_WIDTH | HorizontalFieldManager.HORIZONTAL_SCROLL | HorizontalFieldManager.HORIZONTAL_SCROLLBAR | HorizontalFieldManager.RIGHTWARD)// | HorizontalFieldManager.NO_HORIZONTAL_SCROLL)
            {
                 public int getPreferredWidth()
                 {
                       return Display.getWidth();
                 }
                 protected void sublayout( int width, int height )
                 {
                    super.sublayout( width, height );
                    width = getWidth();
                    height = getHeight();               
    
                    Field leftField = getField(0);
                    if (leftField != null && equals(leftField.getManager()))
                    {
                        setPositionChild( leftField, 0, 0);
                    }
    
                    Field centerField = getField(1);
                    if (centerField != null && equals(centerField.getManager()))
                    {
                        int w = (width - centerField.getWidth()) / 2;
                        int h = (height - centerField.getHeight()) / 2;
                        setPositionChild( centerField, w, h);
                    }
    
                    Field rightField = getField(2);
                    if (rightField != null && equals(rightField.getManager()))
                    {
                        setPositionChild( rightField, width - rightField.getWidth(), 0);
                    }
                }
            };
            header.add(prev);
            header.add(_label);
            header.add(next);
            setTitle(header);
    

    Solved!

    Basically my manager should not call super, must call layoutChild before positioning and then affecting the scope of the Manager.  Yes, a lot of questions and unfortunately a lot of code examples on this site that.  Please visit this page on the managers how custom must be written:

    http://www.thinkingblackberry.com/archives/74

  • Development/unfocus field custom button problem

    Hi all

    I have something weird happens.  I have a custom button field that swaps the images based on a focused state or blur.  I have been using this field custom for awhile now, and I have never had any problems.  Imagine the following provision:

    ______________    ________________________

    | Custom button |    | BasicEditField |

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

    When my screen is launched, the focus is on the custom button.  If I move the trackball in a downward movement, the focus is taken the custom button, and its background image changes adequately to what has been defined in the untargeted State.  The BasicEditField then has the focus.  This is the correct behavior.

    If, however, I move the trackball in a movement to the right to the BasicEditField, then the BasicEditField will indeed get the focus, however the custom button field always displays its "highlight" picture  Using print statements, I was able to determine that when I move in a movement to the right with the trackball, the custom field button loses the focus and then gets the focus back to back, that's why it shows the highlighted image.

    Additional info:  This isn't an issue on touch devices, and custom button Manager is a TableLayoutManager.

    Any ideas why this might be happening?  Here's the code to my custom button field:

    public class BitmapButtonField extends Field {
        private String text = "";
        private Bitmap bitmap;
        private Bitmap bitmapHighlight;
        private Bitmap b;
        private boolean highlighted;
    
        public BitmapButtonField(String image, String imageHighlight, long style) {
    
            super(style | Field.FOCUSABLE);
    
            this.bitmap = Bitmap.getBitmapResource(image);
            this.bitmapHighlight = Bitmap.getBitmapResource(imageHighlight);
    
            b = bitmap;
    
        }
    
        public BitmapButtonField(String text, String image, String imageHighlight,
                long style) {
    
            super(style | Field.FOCUSABLE);
    
            this.text = text;
            this.bitmap = Bitmap.getBitmapResource(image);
            this.bitmapHighlight = Bitmap.getBitmapResource(imageHighlight);
    
            b = bitmap;
    
        }
    
        protected void drawFocus(Graphics graphics, boolean on) {
            // Do nothing
        }
    
        public int getPreferredHeight() {
            return bitmap.getHeight();
        }
    
        public int getPreferredWidth() {
            return bitmap.getWidth();
        }
    
        protected void layout(int width, int height) {
            setExtent(getPreferredWidth(), getPreferredHeight());
        }
    
        protected boolean navigationClick(int status, int time) {
            fieldChangeNotify(1);
            return true;
        }
    
        protected void onFocus(int direction) {
            b = bitmapHighlight;
            invalidate();
            System.out.println("FOCUSED");
    
        }
    
        protected void onUnfocus() {
            b = bitmap;
            invalidate();
            System.out.println("UNFOCUSED");
        }
    
        protected void paint(Graphics graphics) {
    
            int topTextPadding = (b.getHeight() - getFont().getHeight()) / 2;
            int sideTextPadding = (b.getWidth() - getFont().getAdvance(text)) / 2;
    
            graphics.drawBitmap(0, 0, getWidth(), getHeight(), b, 0, 0);
            graphics.setColor(Color.WHITE);
            if (text.length() > 0) {
                graphics.drawText(text, sideTextPadding, topTextPadding,
                        Graphics.ELLIPSIS, b.getWidth());
            }
        }
    }
    

    Have you looked at navigationMovement in the TableLayoutManager?  I confess that I rewrote it because it handles no left and right as I wanted.  Perhaps, you might be able to do the same thing.

  • "Home" button problem?

    GGuys that I just bought a new phone I 6, but whenever I touch slightly the home button that feels by clicking a little bit... the fingerprint sensor works well fine.is it something I should worry about?

    Hello Simoskav,

    Thanks for this info and choosing the communities Support from Apple. I know how important ensuring your new iPhone work properly is for you! Based on what you said, it seems you have a problem of physics with the home on the iPhone button, but you can try the steps outlined in this article before install you any type of service:

    Get help with buttons and switches on your iPhone, iPad or iPod touch

    See you soon!

  • "Back" button problem

    I have only the back button. The next button is no more. But my problem is that I can't use the back button. It is always gray and cannot select. I have to use the BACKSPACE on the keyboard to get back on the web. Could you help me with this problem please?

    I found the solution. This is an extension that was causing the problem. The extension name is grant WinToFlash. Just removed and restarted Firefox. Now, not only the back button works again, but the next button appears again.

  • Satellite R830 - keyboard button problem:

    Our Toshiba Satellite R830 has a temperament H key. If you press the left side of the key, it works very well. If you press the right side, this isn't. All other keys are fine. This could be the result of debris?

    Is it easy to jump off the key and pop it back on again?

    Well, what you can do is remove the CAP button and check the box under the hood
    You can use a jet of compressed air to remove dust (if available).
    But I think that its some mechanical problem, the point is that the simple buttons cannot be replaced, you can replace the plugs, but not the button so you will need to replace the entire keyboard to get it repaired.

  • LED power button problem FIXED on Satellite P300

    Toshiba
    LED power button fix

    Toshiba
    Satellite P300-h-13

    By Thom
    Wijtenburg

    First of all, I would like to
    say you that I came up with this correction, after a clean reinstall of the
    Vista. (I used the serial number of windows on the bottom of my laptop for)
    install, so it's the same license as the OEM of windows and therefore
    Tout_a_fait legal.) After the clean install and installation of all the
    the drivers listed on the site of toshiba LED power button (also
    known as the mute button) and the CDDVD butten (mediaplayer button)
    stopped working. After browsing around forums toshiba I found
    this case, I removed the support button utility that the mute button has acted as
    a mute button. Also the mediaplayer button worked fine. Reinstalled
    the utility support for the button and they have stopped working. After many
    toshiba calls (I think about 5-6 in one day) they opened a
    support ticket for me, because they (team support callcenter)
    could not find a solution. Following their advice, I did the
    next to try to make it work:

    * Don't have a system restore with the restore DVD.
    * Do you have an another clean install.
    * Install the drivers in various ways (alphabetically reversed by alphabetical order and order of collection DVD).
    * update my BIOS.
    * downloaded a 'new' version of value added package (which was the same thing I already had).
    * installed the VAP with and without technical support button utility, no changes.
    After doing everything
    This, they said that they did not know the cause of my problem (at the beginning
    they thought it was hardware related). They came with a possible
    anwer:

    "It is."
    possible that we removed some features of windows vista
    operating system so that our one utility for device drivers
    work. In addition, we do support the configuration, that we delivered
    When you bought the laptop. »

    Now of course, I have
    understand that. I waited allmost a week, no response. Neither
    by electronic mail, or by phone, so I decided to google more
    on the problem.

    After a certain
    some research on Toshiba forum and Googling I came across
    a thread that sayd I must first install the utility 'control '.
    and the button press. Unfortunately what it did not work.

    Then, all of a sudden
    Windows displays a message saying that I should install the TOSHIBA.
    "ACPI-based value-added general use and logical device driver.
    I clicked on the provided download link, and the VFR package was a newer version
    version of the support page for my laptop which is held. So I downloaded
    This PPV version 1.17 and installed it. After a reboot, the buttons
    still did not work. But at least I got the file HWSetup.exe, where I
    could turn the LED off. Look into the button holder utility, I have
    saw that there where buttons like "Toshiba Assist" which my
    the laptop model is not.

    Navigation
    through the toshiba forum I found a file named ButtonSettings.ini, in
    which I can manually configure special keys. After a google
    search on the name of the file, I found that all the buttons list
    in a registry key. I saw the "Dimmer" file using the button
    folder and clicked on it. Poof... lights went out. Click again,
    Poof... lights turn it back on. So I replaced the wrong button definitions
    with CDDVD and dimmer values. Saved my changes but is not a restart.
    Opens the support button utility and change the path of
    MediaPlayer (who was always there to a previous definition) to
    Dimmer.exe. checked to see if the button CDDVD pointed
    MediaPlayer and restarted. When everything has been started, I pushed on the
    button again and presto... MUTE lights off. Pushed again, poof...
    lights. Pressed the mediaplayer button and started to mediaplyer. I have
    has been very happy when everything worked.
    Now that you
    know the story, here's the fix.

    * Difficulty: *.
    * Download and install the new VAP from here: [http://cdgenp01.csd.toshiba.com/content/support/downloads/util_tvap_26084A.exe]
    * Choose Edit in the installation and make sure that everything is checked
    * do NOT restart after the installation.
    * Download the ini fix and the fixed registry
    * Uncompress its contents into your working folder.
    * Copy the ini into C:\Program Files\TOSHIBA\TBS (where C: is the drive of program files)
    * In this same folder, start the exe called TBSbtnSt.exe
    * do NOT restart, click on 'no' in the dialog box.
    * Double click on the registry key, and then click 'Yes' to add to the registry
    * Then open the button support utility by clicking Start-> Toshiba-> utilities-> Toshiba assist. Help go to optimilization and click support button tohiba
    * If the path or the description is disabled, fix, and then click Save. See also if the CD/DVD mediaplayer points.
    * Restart you computer now.
    * If everything is is well past your special buttons should work.

    * WARNING: *.

    It worked for
    me, with my Toshiba Satellite P300-h-13, edition windows Home premium 32-bit.
    It should work on any model of 6 buttons with the mediaplayer and the mute
    buttons. I am in no way responsible for any damage that may arise
    If the fix does not work correctly. There is absolutely no. GARUENTEE
    It will work for you. If the answer is Yes, he does, and if it's not it
    doesn't work.

    * Author: *.

    I came
    With this fix by myself, without any help from toshiba support. I am
    the original author of this text. This document is for information
    purposes and should not be modified in any way.

    This page is
    also hosted on my Web site for documentation purposes. I have
    contacted toshiba support on my support ticket and has asked to
    Cancel and read this. I have also explained in the world.

    Wow, that's really cool! I think that a lot of users here would appreciate this extraordinary well documented fix.

    Thanks dude. :)

    Welcome them

  • Satellite R850-12 x - space bar button problem

    Hello

    I bought yesterday r850-12 x (Russian version) and you have probably noticed, that if I press the space bar on his left side, he does not respond, resulting in several space missing...

    I googled a little and it seems happens from time to time in different models.

    Question:
    Is this something in common that can be fixed quickly? I need compputer, and the retailer, where I bought it, said that the return (including expertise from Toshiba) takes 5 to 20 days.

    This is stupid, so I need to understand, if this problem can be solved quickly - or not... My toshibas have never failed, so far...

    Well, in the worst cases, your space button may be default and this can be solved by the replacement of keyboard.
    But this means that you must return the device to the AEP from Toshiba which would be able to help you.

    On the other hand, it would be possible that the space button stick somehow
    you could try to remove the stopper carefully and could check if you could clean the plastic brackets.

    I found Nice youtube video how to do this:
    http://www.YouTube.com/watch?v=mKzNWd_WtW0

    But if you put t want to risk injury, contact a Toshiba ASP.

  • Dynadock U eject button problem

    * _Issue_: * when you press the eject button on the Dynadock U, there seems to only be no activity whatsoever in Windows 8 64-bit Machine. I have a total of 3 hard disks connected at any time, and finally end up them manually eject before pulling the plug.

    My installation procedure was to go to the Web of DisplayLink website at [http://www.displaylink.com/support/downloads.php | http://www.displaylink.com/support/downloads.php] and downloaded the latest drivers. Then restarted the system and connected the USB to the computer.

    Can support Toshiba back to me on this or if someone managed to solve this problem, could they bring a solution please?

    Hi fareed_xtreme. Do you have news?
    It seems that Displaylink has provided an update to Win 8
    Check it!

  • Satellite A300 - replacement for the keyboard button problem

    Satellite A300 broken my number key 3.
    Easy to fix but still Toshiba have charged me £43 to replace it with a new full keyboard.
    It is less than 6 months old and still under warranty.

    What an absolute joke, I wouldn't have another toshiba again.

    > What an absolute joke, I wouldn't have another Toshiba again.
    Well, it is your personal opinion but I agree.

    However, if you understand something about laptops so you'd know that the single button can not be replaced.
    Only the CAP can be replaced but not the button on the keyboard, and thus the entire keyboard needs to be replaced!

    In addition, the guarantee only covers hardware problems that are not caused by laptop user I n don't know why the button on your keyboard is broken (maybe you was your fault) but I think that you have contacted the ASP in your country and talked to the technician then why you didn't explain that it wasn't your fault?

    In any case, the case should be clear now

  • Satellite P500 PSPGSE - Start Power button problem

    Hello! Hi, I have a problem with my laptop!

    Power-start button on my usual (pspgse drivers) Toshiba p500 works, but when I use remote control work.
    A month AGO portable is in SERVICE of TOSHIBA in Serbia and they say that this is a problem in the bios and they Flash bios.
    But a mounting later same problem.

    It is not Bios are now what is the problem?

    Thanks in advance!

    Hello

    It might be the problem of equipment in my opinion, you should contact the ASP and should talk to the guys that this problem is not resolved.

  • custom scaling button problem

    Hi, I'm trying to customize some controls, but I have a problem with the construction of a button. I replaced the central image by a more realistic appearance and now I want to change the scale to better understand my button again, but I can't put across the 'ladder' after I want to be able to better run the needle and I can't choose the position of the needle. I am attaching the file so you can view and maybe help me to make this more comfortable button thank you!

    to customize your Ctrl button, click on the 'key' to display the icon.then of "clips" you can do what you want with the image or the button of properties, including the streching the balance to make pivot 360 degs, maximum range, no ticks, ticks, etc... BTW, reorganize tab is practical by placing objects to the front or the rear of several images

Maybe you are looking for