You Are Here:

Community: Developer Discussion Boards

#1 Old LeftSoftKey Behaviour - 2006-07-06, 19:42

Join Date: Nov 2004
Posts: 3
onno baudouin
Offline
Registered User
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
Reply With Quote

#2 Old Re: LeftSoftKey Behaviour - 2006-07-07, 19:52

Join Date: Aug 2004
Posts: 290
simo.salminen
Offline
Regular Contributor
This kind of feature in UI framework is missing. You can change the right softkey with a hack, search this forum.
Reply With Quote

#3 Old Re: LeftSoftKey Behaviour - 2006-07-11, 17:41

Join Date: Nov 2004
Posts: 3
onno baudouin
Offline
Registered User
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)
Reply With Quote

#4 Old Re: LeftSoftKey Behaviour - 2006-07-30, 06:13

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
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,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Funny behaviour in AutoStart using pushRegistry khamouda Mobile Java General 12 2007-01-11 03:30
Blocking behaviour of MIDP 2.0 sockets - getting it straight uttumuttu Mobile Java Networking & Messaging & Security 1 2005-06-21 09:39
Emulator behaviour referring numeric input btnokdev General Symbian C++ 1 2004-04-27 12:11
Behaviour of the midlets in the different implementations teerilah Mobile Java General 0 2002-10-30 12:01
What is standard behaviour when SME exceeds window size? ashwinkelkar General Messaging 1 2002-10-10 12:43

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia