×

Discussion Board

Results 1 to 5 of 5

Thread: center button

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    29

    center button

    Hi..How to program the middle button present in between the arrow keys.

    I am working on an application where in currently only the left and right softkeys facilitate navigation.I would like to program in such a way that the user should also be able to select the center button also .

    Kindly help me in this regard if anyone have a solution.

  2. #2
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: center button

    Hi,
    If your class is extending canvas . If you press the center button it will call the key events with the key codes. Get the cente key code and perform the action what you required

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    29

    Re: center button

    I am using form for that

  4. #4
    Regular Contributor
    Join Date
    Mar 2005
    Location
    Hamburg, Germany
    Posts
    284

    Re: center button

    The form is part of the high level user interface.
    In the form, you use a command with type Command.OK and priority 1,
    and hope that the phone manfacturer has implemented MIDP so that it puts the command on the middle button.
    The good thing is, if the phone has no middle button, your app is still usable.

    Regards

    Karsten Meier

  5. #5
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: center button

    And a small Nokia-flavored addition to internetlabor's answer.

    Series 40 devices have worked this way for quite long. On S60 side the middle soft key is used for command placement starting from S60 3rd Edition FP2

    Hartti

Similar Threads

  1. Dialog button vs softkey button
    By apitoman in forum Symbian User Interface
    Replies: 2
    Last Post: 2011-07-19, 12:28
  2. Add a control (e.g. button) programmatically
    By ViRuSTriNiTy in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-01-02, 21:05
  3. Center button not does not select the item in the list box.
    By Rajani_sp in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-12-05, 09:01
  4. Suppress center button in j2me form
    By jini_1 in forum Mobile Java General
    Replies: 5
    Last Post: 2007-06-11, 15:45
  5. How to capture joystick center button?
    By gauravgandhi80 in forum Symbian
    Replies: 1
    Last Post: 2004-12-29, 07:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×