You Are Here:

Community: Developer Discussion Boards

#1 Old How to open Commands menu from an application? - 2003-07-10, 10:04

Join Date: Jul 2003
Posts: 1,094
Location: Finland, Tampere
doctordwarf
Offline
Super Contributor
I am developing a FullCanvas game.
I would like it respond to SoftKey_1 press by showing menu very similar to normal Canvas menu (like you can see in Snake Ex game).

I came to an idea of switching to a normal Canvas, painting it like main FullCanvas and then showing menu.

However, user have already pressed SK_1 before screens switching. I don't want him to press it one more time to actually show the menu. Is there a way to request showing menu from a program?
Reply With Quote

#2 Old 2003-07-11, 10:27

Join Date: Mar 2003
Posts: 393
nmittal's Avatar
nmittal
Offline
Regular Contributor
Draw your own softkeys on the fullcanvas or just capture the softkeys in the keypressed method when using canvas.

public void keyPressed(int keyCode)
{
// any softkey key-press exits
if ((keyCode == KEY_SOFTKEY1) || (keyCode == KEY_SOFTKEY2) ||
(keyCode == KEY_SOFTKEY3))
{
parent.exitRequested();
}
}


[N]/Forum Nokia
Reply With Quote

#3 Old 2003-07-11, 10:51

Join Date: Jul 2003
Posts: 1,094
Location: Finland, Tampere
doctordwarf
Offline
Super Contributor
nmittal, I am doing so. Capturing SKs if of no problem.
After capturing it on FullCanvas, I switch to another normal Canvas AND NOW I should show menu.
User has already pressed SK, I don't want him to press it one more time.
Reply With Quote

#4 Old 2003-07-11, 12:06

Join Date: Mar 2003
Posts: 393
nmittal's Avatar
nmittal
Offline
Regular Contributor
Snake Ex on S60 is a Symbian application.

[N]/Forum Nokia
Reply With Quote

#5 Old 2003-07-11, 13:25

Join Date: Jul 2003
Posts: 1,094
Location: Finland, Tampere
doctordwarf
Offline
Super Contributor
nmittal, thank you for attention to this topic :)

Yes, I know that Snake Ex is a Symbian app. I explained all the stuff just to tell why do I need manual menu showing.

The question is rather local: Is there a way to request showing Commands menu?

If there is, then I will make my game menus similar to Snake's. Of course not same, but similar looking
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
[IMG] code is Off
HTML code is Off
Forum Jump

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ