How to catch the event up, down, left, right button. Help me!!!

I want to catch even down, left, right, I coded like this:

{} public boolean keyChar (key char, int status, int time)
  
If ((key==Characters.CONTROL_UP) |) (key == Characters.CONTROL_DOWN) | (key == Characters.CONTROL_LEFT) | (key is Characters.CONTROL_RIGHT)) {
Dialog.Alert ("Move");
Returns true;
}

If {(key is Characters.ENTER)
Dialog.Alert ("Enter");
Returns true;
}

Return super.keyChar (key, status, time);
}

But only Characters.Enter can be caught, but Character.CONTROL_LEFT, on the RIGHT, upwards, downwards cannot be caught. I work with BlackBerry 8820 Simulator. Please help me. Thank you

navigationMovement() "listener" is what I think you need.  Search through fields and the things that are derived from fields (such as the screens).

Tags: BlackBerry Developers

Similar Questions

  • How to catch the event storm rotation?

    Hi all

    As the title,

    I want to know how to catch the rotation on the device of the storm?

    Y at - it samples which I can draw?

    Thank you

    You can use the method getOrientation() class net.rim.device.api.ui.Display

    Press the button Bravo thank the user who has helped you.

    If your problem has been resolved then please mark the thread as "accepted Solution".

  • catch the event when you click on the cross of closing

    Hello

    How you catch the event when you click on the cross of closing?

    Thanks in advance,

    Fred

    Discover the reminders of events management of window on page 122 of the Guide to Javascript Adobe pdf tools.

    You want something like:

    myWindow.onClose = function() {}

    your code goes here

    };

    or

    myWindow.onClose = myCloseFunction;

    function myCloseFunction() {}

    your code goes here

    }

  • BBM how to retrieve BBM be hacked or how to catch the pirate?

    Hello everyone, I have a few requests here as member of my family comes from live be hacked:
    -can I know if we provide BBN, PIN, could we know email ID used to register?
    -How to retrieve the BBM be hacked?
    -How to catch the pirate?
    Thanks in advance!

    Most likely you allowed someone to get your credentials BBID, or you have been deceived into giving them upward.

    This is the management of Blackberry users who have their BBID diversion...

    -------------
    In these scenarios, the user must email\contact our office of privacy protection
     
    http://CA.BlackBerry.com/legal/privacy-policy.html
     
     
    10. questions or concerns? How to contact us
    BlackBerry welcomes your questions or comments about this privacy policy and the way in which we treat your personal information. If you have any questions, concerns, or you want to request access to your personal information under the privacy or data protection laws, please communicate with BlackBerry, either by e-mail or in writing and we will use commercially reasonable efforts to respond:
    email: [email protected], or
    write to one of the following offices of the nearest BlackBerry you:
    BlackBerry Privacy Office c/o BlackBerry (attention Legal Department), 2200 University Avenue East, Waterloo, Ontario, Canada N2K 0 to 7
    BlackBerry Privacy Office c/o BlackBerry (attention Legal Department), 200 Bath Road, Slough, Berkshire, United Kingdom SL1 3XE
    BlackBerry Privacy Office c/o BlackBerry (attention Legal Department), 1 International Business Park, The Synergy Building, 2nd Floor, Singapore 609917
    ------------

  • How to get the event when we change our simcard in BB device

    Hi all

    Please, someone tell how to get the event or any listener method that can automatically called when we change our SIM card device.

    Thanks in advance,

    TEJ

    Hi Tej,

    I came across some post, which may be useful for you

    http://supportforums.BlackBerry.com/T5/Java-development/is-there-a-way-to-get-the-mobile-or-phone-nu...

    http://supportforums.BlackBerry.com/T5/Java-development/is-SIM-ID-really-exist/m-p/54407#M5954

  • I don't see the event live from the URL indicated. How to join the event online please?

    I don't see the event live from the URL indicated. How to join the event online please?

    At the time you posted this question, the STM sessions had not started yet. The event started at 9:00 PT.  Please let me know if you are still experiencing difficulties to connect.

    Note: all sessions will be available for consultation on request after the event is finished at 1:00 pm PT.

    See you soon,.

    LKR

  • How to catch the end of an external task?

    Hello

    How to catch the end of an external task?
    OS: Windows 2003
    DB: 10.2.0.1

    The code I wrote will run forever:
    declare
       d date;
       n number;
       -- and more
    begin
        d := sysdate;
        dbms_scheduler.create_job(
          job_name => c_job,
          job_type => 'executable',
          number_of_arguments  => 14,
          job_action => c_cmd,
          enabled => false,
          auto_drop => true
        );
        dbms_scheduler.set_job_argument_value(c_job,1,'/c');
        dbms_scheduler.set_job_argument_value(c_job,2,c_command);
        dbms_scheduler.set_job_argument_value(c_job,3,c_pw);
        dbms_scheduler.set_job_argument_value(c_job,4,c_pw_val);
        dbms_scheduler.set_job_argument_value(c_job,5,c_port);
        dbms_scheduler.set_job_argument_value(c_job,6,c_port_val);
        dbms_scheduler.set_job_argument_value(c_job,7,c_key);
        dbms_scheduler.set_job_argument_value(c_job,8,c_key_val);
        dbms_scheduler.set_job_argument_value(c_job,9,c_agent);
        dbms_scheduler.set_job_argument_value(c_job,10,c_batch);
        dbms_scheduler.set_job_argument_value(c_job,11,c_source);
        dbms_scheduler.set_job_argument_value(c_job,12,c_dest);
        dbms_scheduler.set_job_argument_value(c_job,13,c_log);
        dbms_scheduler.set_job_argument_value(c_job,14,c_yes);
        dbms_scheduler.enable(c_job);
     
        -- Job started, waiting...
        loop
          select count(1)
          into n
          from user_scheduler_job_run_details t
          where job_name = c_job and
                t.log_date >= d;
          exit when n > 0;
          dbms_lock.sleep(1);
        end loop;
     
    end;
    The work ends in fact, user_scheduler_job_run_details is updated (if you run the select statement in the loop in another session, it returns 1), but the selection running into the loop will always return 0.
    Any help is appreciated.

    Kind regards
    Lmocsi

    Hello

    It's strange, maybe you can try to use the timestamp type rather type date and with the help of an offset in the case where the work already finished for example d = systimestamp - second interval '1'

    Another thing to watch is if you compare the dates in the same time zone, otherwise you must ensure that all sessions use the same time zone (setting the default_timezone attribute Planner can help).

    Hope this helps,
    Ravi.

  • How to check the event.target type in the "if" statement

    Hi, I have "roll-over" event listener and I wish that only works with music videos (without textfields etc.). I would write something like this:

    if(Event.Target == MovieClip) {do something}

    else {do something}

    This does not work properly.

    How to check the event.target type in the "if"?

    Thanks for any help.

    :

    If (getQualifiedClassName (Event.Target) == 'flash. display::MovieClip') {do something}

    else {do something}

    .

  • How to catch the exception in the sliders

    Hello

    How to catch the exception no. DATA FOUND/other exceptions with the cursor
    DECLARE
    CURSOR c1 IS SELECT * FROM EMP WHERE empno = 1234;
    BEGIN
    FOR i IN c1 LOOP
    DBMS_OUTPUT.PUT_LINE(i.ename);
    END LOOP;
    END;
    so 1234 is not in my table, how to trap this.could help me please

    Published by: user4587979 on 27 May, 2010 03:46

    Maybe it's

    declare
      CURSOR c1 IS SELECT * FROM EMP WHERE empno = 1234;
      lemp c1%rowtype ;
    begin
      open c1;
      loop
        fetch c1 into lemp;
        exit when c1%notfound;
        DBMS_OUTPUT.PUT_LINE(lemp.ename);
      end loop;
      if c1%rowcount = 0 then
        raise no_data_found;
      end if;
      close c1;
    end;
    
  • How to get the event when you click Add another button in a table.

    Hello
    How to recognize the event in processFormRequest click on the button Add another line of the footer of a table?

    Suppose if the ID is anotherRow (I mean ID of the button to add another line of the footer)

    If I give if (pageContext.getParameter ("anotherRow")! = null)... its not recognizing the event that is returning null only...

    I want to perform certain actions when the user clicks Add another line of footer. Please let me know the details of how identify when add another line is clicked...

    Thank you
    Srikanth

    Hello

    If you have only one table with add_row_button, and then copy the following code works perfectly

    If (tableBean.getName () .equals (pageContext.getParameter (SOURCE_PARAM)))
    (& ADD_ROWS_EVENT.equals (pageContext.getParameter (EVENT_PARAM)))
    {
    ...
    }

    tableBean is the Handle for your advanced table, hope, it will help you.

    Kind regards
    Out Sharma

  • I reciently reinstalled windows and now the fence, restore down and minimize buttons are not mixed together.

    I reciently reinstalled windows and now the fence, restore down and minimize buttons are not mixed together. they are indervidual buttons. Have all the updates and service pack installed.

    I saw the screen shot, I think that Aero is disabled, or the Desktop Window Manager Session Manager service is disabled or stopped. Try to run the troubleshooter 'display the Aero effects. " And when firstly, you had the drivers that do NOT support Aero and then updates, Windows does NOT automatically update the settings. You must recaulculate the computer for Aero Performance Index is enabled.

    Or you can see more help on this page, which contains explanations of the Aero and a link to a Web page for downlading an application which solves the problems.

    Hope that helps!

    Marko Calasan.

  • I have an optical mouse wireless portable 3000, the left & right buttons do not work, but the Center wheel works fine. Can someone please?

    I have an optical mouse wireless portable 3000, the left & right buttons do not work, but the Center wheel works fine. Can someone please?

    Hello

     

    You did changes to the computer before the show?

     

    Method 1: Check the mouse on another computer and see if the clicks.

     

    Method 2: See the following article:

     

    Troubleshoot the incidents of the response to the mouse or wireless keyboard:

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

  • How to select the path to a file icon button to a table?

    I have a SYSTEM_PATHS table name. All physical access paths as 'where the forms of execution are located' or 'where performance reports are located' are stored in its ranks for example (C:\HRMS\FORMS\)
    I memorized the path of the icon files (.ico) inside. The forms of execution can take the path of the icons for the buttons of this table. And access the icon of the chosen path. I use forms 6i. Normally, I put the path of the icon files in the nerve to property of the button as (C:\HRMS\ICON\). But now, here, I don't have a path but its in the column of a table. How to select the path to a file icon button to a table using forms 6i?

    Hello Gul,

    have you tried

    set_item_property('Button name',ICON_FILENAME,);
    

    Concerning
    Marcus

  • How to change the font size of statictext and button is the font size in the user interface?

    Hello

    How to change the font size of statictext and button is the font size in the user interface?

    Thks.

    Goldbridge

    var w = new Window ("dialog");
    var s = w.add ("statictext", undefined, " 30 Point Static");
    var s2 = w.add ("statictext", undefined, " 100 Point Static");
    // the third argument is the font size
    s.graphics.font = ScriptUI.newFont ("Helvetica", "Bold", 30);
    s2.graphics.font = ScriptUI.newFont ("Helvetica", "Bold", 100);
    
    w.show ();
    

    See the example above.

    See also Peter Karhels Guide to the user interface. Very recommended.

    http://www.kahrel.plus.com/InDesign/ScriptUI-1-9.PDF

  • How to change the property 'Border' of a Radio button?

    How to change the property 'Border' of a Radio button?

    TIA,

    -RFH

    What is the point of an option button if you can't see if it is checked or not?

    If you want a tool of indirect approach I suggest you use another thing. Maybe an annotation.

Maybe you are looking for