×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Nov 2004
    Posts
    3

    LeftSoftKey Behaviour

    Perhaps this is totally stupid question but is there a way to make the LeftKey (and the menu) NOT show a menu make it act like the right one? ie when you simply press it you can assign a handler? -> some problems don't need 'Options' but a Back and Forward,

    I found (a hideous way i think) to change the labels. I know you can trap it with Canvas, but i do not want a canvas on my screen.

    Python on series 60 is lovely but you can tell it's still very much evolving

  2. #2
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    295

    Re: LeftSoftKey Behaviour

    This kind of feature in UI framework is missing. You can change the right softkey with a hack, search this forum.

  3. #3
    Registered User
    Join Date
    Nov 2004
    Posts
    3

    Re: LeftSoftKey Behaviour

    Indeed, i found hack for both Left + Right (Both use the FGImage module) and i disable the left menu and then use the canvas event callback to see wether left has been pressed.

    now i can setup and easily change both labels + events for both buttons (and works fine).

    In fact with the FGImage i've wrapped the camera app to 'look' like it's part of my own application. After the exit of the app i find the last picture taken and include it into my own. All attempts to modify the FGImage labels WHILE the camera app is running result in total failure though .

    I'm currently trying to find your iapconnect example coz again i don't want the user to select anything.

    So this is to say many thx to YOU! coz you made the small research project hopefully work (still need to send binary files across the connection module )

    I'll use it for a realtime gps game though...

    Can't wait till there is a version 2.0 of python (if ever) to open more the api that is hidden beneath it, that would make an incredible platform.

    Next up for me (after socket binary server) is to create a Flash 2 Lite + Python combo (also gps, so ican use flash for all the graphics and python for the stuff flash can't do)

  4. #4
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: LeftSoftKey Behaviour

    Quote Originally Posted by onno baudouin
    Indeed, i found hack for both Left + Right (Both use the FGImage module) and i disable the left menu and then use the canvas event callback to see wether left has been pressed.

    now i can setup and easily change both labels + events for both buttons (and works fine).
    If I was you I don't try (I try it myself and it don't work in all cases !) the FGimage method ...

    Use my free module instead !

    put uitricks.pyd and key_tricks.py to !\system\libs
    And now add this to your code

    Code:
    from key_tricks import * 
    import uitricks
    # 'Options' lefsoftkey label becomes 'Forward' ...
    uitricks.set_text('Forward',EAknSoftKeyOptions)
    # 'Exit' becomes 'Back' ...
    uitricks.set_text('Back',EAknSoftKeyExit)
    binary uitricks module (1st and 2nd pys60 only !)
    key_tricks.py

    I don't try the code but I think it would have to work fine !
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

Similar Threads

  1. Funny behaviour in AutoStart using pushRegistry
    By khamouda in forum Mobile Java General
    Replies: 12
    Last Post: 2007-01-11, 02:30
  2. Blocking behaviour of MIDP 2.0 sockets - getting it straight
    By uttumuttu in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-06-21, 08:39
  3. Emulator behaviour referring numeric input
    By btnokdev in forum Symbian C++
    Replies: 1
    Last Post: 2004-04-27, 11:11
  4. Behaviour of the midlets in the different implementations
    By teerilah in forum Mobile Java General
    Replies: 0
    Last Post: 2002-10-30, 11:01
  5. What is standard behaviour when SME exceeds window size?
    By ashwinkelkar in forum General Messaging
    Replies: 1
    Last Post: 2002-10-10, 11:43

Posting Permissions

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