How a bitmap button can recognize key strokes?

Hello

I created an image button and it recognizes the click of the mouse in touch Simulotor. But when the focus is on the button, when I press ENTER, it does not recognize. I need to create the button for non touch phones. Is there a solution? My code is like this

Bitmap bitmap1 = Bitmap.getBitmapResource("Add.png");
btField1 = new BitmapField(bitmap1, BitmapField.FOCUSABLE | DrawStyle.HCENTER)
{
  protected boolean navigationClick(int status, int click)
  {
      fieldChangeNotify(1);
      return true;
  }
};

Any help will be much appreciated

I met this issue before, but I do not use bitmapField to perform the functions of the handle.

(I put on the screen, using a variable "status" to save the State of the user).

So I don't know if this is possible in your bitmapField.

Due to the use of the ball from his wheel blackberry push push "enter", so I add this function manage the ball pushing wheel:

protected boolean trackwheelClick (int status, int time) {}

Enter code to push

Returns true;

}

And I think that someone may press 'Enter' (at least I support on entering the Simulator), so I add this function to handle the key "enter":

Tags: BlackBerry Developers

Similar Questions

  • How to set up the multimedia keys (only the last 3 buttons)

    Hello

    How to set up the multimedia keys (only the last 3 buttons)? The first button works, you open the browser and the other open WMP.
    But the last 3 buttons (play/pause, Stop, forw/rewd) aren´t work with WMP. How can I fix?

    Thank you

    Hello

    Can you please tell us what model of laptop Satellite A do you have?

  • How can I get my action button can be log off and not closed? I select it in the customization tab, hit apply and then ok, but nothing changes.

    How can I get my action button can be log off and not closed?  I select it in the customization tab, hit apply and then ok, but nothing changes.

    Hi Erin,.

    Please check if you have followed the steps below to change the action of the Power button.

    By default, clicking on close button in the start menu stop your computer. You can change this so that instead of close, your computer logs you off, crashes, restarts, goes into a State of sleep or goes into hibernation.

    1. open properties of the Start Menu by clicking theStart button, clickingControl Panel,appearance and personalization, then clicking on thetaskbar and Start Menuand the taskbar.

    2. click on theStart Menu tab.

    3. in the list ofthe power button , click an item, and then clickOK.

    When you change the action of the closure of the key, the button name changes to reflect the new action.

    If the steps above do not change the option, you can try creating a new user account on your computer and check to see if it helps you change.

    To create a new user account.

    1. open user accounts by clicking the Start button, clickControl Panel, click user accounts and family safety (or by clicking onuser accounts, if you are connected to a network domain), and then clickinguser accounts.

    2. click on Manage another account. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    3. click on create a new account.

    4 type the name that you want to assign to the user account, click an account type, and then clickcreate an account.

    If you are able to change the action of the power button by using the new profile, access the link below and follow the steps to correct the user's profile.
    http://Windows.Microsoft.com/en-us/Windows7/fix-a-corrupted-user-profile

    I hope this helps. Let us know the results.

    Thank you and best regards,

    Srinivas R Microsoft support.

    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • can not understand how to reset lost password master key

    I read how to change but can not understand to do

    Have you tried using the URL in the address bar chrome?

    chrome://pippki/content/resetpassword.xul
    

    If you use the chrome that url does not work, then delete the files key3db and signons.sqlite in the Firefox profile folder.

    You can use this button to go to the Firefox profile folder:

    • Help > troubleshooting information > profile directory: see file (Linux: open the directory;) Mac: View in the Finder)
  • How many phone numbers can be connected simultaneously, use the most and merge buttons

    How many numbers phones can be connected at the same time, use the most and fusion of the buttons after you make the first call?

    It depends on your operator.

    It's been a few years since I've really looked into it, but I think that AT & T supports up to 5 concurrent calls. I know that other major U.S. carriers support less, but I don't remember the exact numbers. I want to say that Verizon and Sprint are in charge 3 and T-Mobile supports 2, but my memory on this subject is blurred.

    Contact your operator for more information.

  • How much RAM Win 7 32 bits can recognize?

    I installed on the motherboard of strips of 8 GB memory. Currently, my WinVista and WinXP can't see 3.5 GB max. sucks...

    I intend to install Win 7 Home Premium edition. The amount of RAM it can recognize the same cluster?

    Please advice. Thank you.

    Edy

    As 32-bit Windows may be able to address up to 4 GB, an individualized process can use up to 2 GB of space, regardless of how much remains free for use. Using the switch/3 GB can increase the amount of RAM available to applications, but does not increase the size of the system address space and will not increase the maximum amount of RAM used by the system.

    Hope that helped.

  • my screen is upside down. I hit the key STROKE somw and now can go right to the top. Help, please

    my screen is upside down.  I hit a few key Strokes and now cannot get right to the top.  Help, please

    Try holding down CTRL + ALT + one of the arrows to rotate the screen.

  • Buttons on the keys

    I have a game that uses a text called "letterIn_txt", input field where the user enters a letter and presses a button called "guess_btn", that the user presses after entering a letter in which he transforms into capitals and if the guessed letter is equal to the word inProgress, it replaces it with the letter. I was wondering if I can not press the keys between a - z of preform it makes it easier for the user to play the game. He must turn to capital otherwise would not be considered as being equal to the word. Here's how my button works so far.

    This.guess_btn.addEventListener (MouseEvent.CLICK, regarderME);

    function playMe(Event:MouseEvent):void
    {
    guessLetter = this.letterIn_txt.text.toUpperCase ();
    for (var i = 0; i < wordLength; i ++)
    {
    If (inProgress.charAt (i) == guessLetter)
    {
    myDisplay [i] = guessLetter;
    correctGuess = true;
    rightCount ++;      }
    }

    I just want to know how I can press keys to perform this action on the screen instead of typing the letter out and pressing the button. Any help would be great, thanks!

    You can have a listener for keyboard and determine which key was pressed.

    stage.addEventListener (KeyboardEvent.KEY_UP, checkKey);

    function checkKey(evt:KeyboardEvent):void {}
    trace (string.fromCharCode(0)) (evt.charCode))
    }

  • P5P34EA: how to turn off the FN key?

    Hello

    How to turn off the fn key?

    Please READ: everyone saying fn = f10 or fn + f2

    but it's not doing nothing for me! and ctrl + esc just display

    me information of sistem!

    Help, please

    Thanks, March

    Hello

    Try the next method.

    Hold the left SHIFT key you click Shutdown to temporarily prevent hybrid boot.

    Let off the laptop computer for 10 seconds.

    Start by typing esc button permanently as soon as you press the power button (do not wait for the prompt) and see if it will access the start menu - if that is the case, select f10 to open the Bios Menu.

    Kind regards

    DP - K

  • FilterKeys, repeated Key Strokes and slow keys does not disable or turn off.

    FilterKeys or repeated Key Strokes and slow keys prevents me from holding the keys for playing games.  I tried to disable in the ease of access Center, but that does not change.  Any time I press a key, it records the run key for about two seconds, then stops.  It prevents to move in the game because I can't hold before, I either have to use my mouse to move or I have to use autoplay.  It caused a lot of problems to be able to play the game.

    You fill the keyboard buffer. It has probably nothing to do with the accessibility settings. Your game id showing signs of no compatibility with Win 7. I'd go to the game to a patch for the game machine to run it in Windows 7.

    Messages rating helps other users

    Mark L. Ferguson MS - MVP

  • How and if I can get the Vista OEM disc.

    How and if I can get the vista OEM disc. Install win 8 did not know that it would take on my vista os that Microsoft wants everyone to high grade don't like win 7 and win 8 is not working properly I want to reinstall vista. Laptop has been used without disk key code.

    Hello

    There is no Windows Vista downloads available from Microsoft.

    You can contact your computer manufacturer and ask them to send you a set of recovery disks.

    They should do this for a small fee.

    To reinstall Vista using their recovery disk/s, you start from the 1st recovery disk they provide and follow the manufacturer's instructions to reinstall:

    You need to change the Boot order to make the DVD/CD drive 1st in the boot order:

    How to change the Boot order in BIOS:

    http://pcsupport.about.com/od/fixtheproblem/SS/bootorderchange.htm

    "How to replace Microsoft software or hardware, order service packs and replace product manuals.

    http://support.Microsoft.com/kb/326246

    Some manufacturers have more available Vista recovery disks.

    If this happens, you may need to try this instead:

    You can also borrow and use a Microsoft Vista DVD, which contains the files for the different editions of Vista (Home Basic, Home Premium, Business and Ultimate) must be installed. The product key on your computer / Laptop box determines what Edition is installed.

    Other manufacturers recovery DVDs are should not be used for this purpose.

    And you need to know the version of 'bit' for Vista, as 32-bit and 64-bit editions come on different DVDs

    Here's how to do a clean install of Vista using a DVD of Vista from Microsoft:

    "How to do a clean install and configure with a full Version of Vista '

    http://www.Vistax64.com/tutorials/117366-clean-install-full-version-Vista.html

    And once the operating system is installed, go to your computer manufacturer's website and get the latest drivers for your particular model or laptop computer.

    And phone Activation may be necessary when you use the above installation method.

    "How to activate Vista normally and by Activation of the phone '

    http://www.Vistax64.com/tutorials/84488-activate-Vista-phone.html

    See you soon.

  • How will I know my product key?

    How will I know my product key? I'm on windows7 and I have no DVD or CD with laptop. There is no return to the top. I don't have it in my laptop.

    can someone help me please?

    Thank you

    Nefaul Hossain

    You should try to buy a set of disks Recovrey from the manufacturer, or to create them using the software on your computer (see your manual for details). Reinstall using the rigth software to system recovery requires no product key entry.

    If for some reason you can not do the above, see if you can borrow a copy retail of WIndows of the edition of sae as your installation - install that using the default key, then try to activate by phone and speak to an operator. They have sometimes you will give a fresh touch if yours is illegible.

  • How much home computers can load you Windows 7 on I know office 2010 is three

    How much home computers can load you Windows 7 on I know office 2010 is three

    Each Windows product key is good for a single computer. You can buy an additional product key for each additional PC you want to install Windows 7 on.

    In short: 1 hit = 1 computer.

    J W Stuart: http://www.pagestart.com

  • I lost my product key for windows 7 it works fine how do a copy of the key?

    I lost my product key for windows 7 it works fine how do a copy of the key?

    Windows 7 came preinstalled on your computer, or is - what a copy you purchased for your computer?

    Here are four utilities, which can display your product keys if they are still there:
    Belarc Advisor: http://www.belarc.com/free_download.html
    (He did a good job of providing a wealth of information.)

    Also: http://www.magicaljellybean.com/keyfinder.shtml
    and: http://www.nirsoft.net/utils/product_cd_key_viewer.html
    and RockXP: http://www.majorgeeks.com/download4138.html which has additional features

  • How to get the new activation key when some numbers are taken away and you have received?

    How to get the new activation key when some numbers are taken away and you have received?

    Have a laptop with windows 7 from Dell. Need to re install W7. And I have some numbers are taken as a result of its use.
    How can I get a new code activation or my complete activation code?
    Best regards, W7 user

    How to get the new activation key when some numbers are taken away and you have received?


    Have a laptop with windows 7 from Dell. Need to re install W7. And I have some numbers are taken as a result of its use.
    How can I get a new code activation or my complete activation code?

    Dell provided you with restore/recovery media and/or a way to restore the machine 'default' as a key sequence?  If so - you won't need the number--unless they just sent a DVD of Windows 7 nu - and they are usually not unless you ask.

    They have probably installed using their key, which means that even with a utility like Belarc Advisor or ProduKey - you will not get the product key that matches the one on the sticker.

    Some may have you take several different digital pictures of the sticker from different angles and see if you can decipher the missing characters like that (you'd be surprised to see how that works).

Maybe you are looking for

  • Stuck in recovery loop

    I need serious help! I have a HP Pavilion Slimline s3000y running Vista Basic with the last update of the service Ms. He was acting with blue screens once every two weeks. Then I ran McAfee security suite/antivirus every day and nothing was ever foun

  • New update Update 9/29?

    I just looked for a NEW Update. Build number HTK75D. Anyone know what it is and what changes? Second update in 2 to 3 weeks.

  • power on password problems

    I have a laptop TX 2500 a few years back I left it to my mother and I just got back when I went to turn it on after a while not to be used a black screen comes up saying "enter the power on password" in a blue box... After some testing, it gave me an

  • Reference Dell Venus 8 Pro 32 GB

    Was about to order a. But I read nothing about printing. I have a HP printer. They can play together, and if so, what cables do I need?

  • Where can I find Adobe CS6 Download link (I have the serial number)

    Hello!When I go to 'Manage account', click on my products, I see that I have Adobe Photoshop version 13.0 registred back in December 2013. It has a serial number and everything, but I can't for the life of find me a download link so that I can downlo