Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to push these menu to next screen?

 
arun mahajan
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am bit confused what the following means:
new Command("Info", Command.SCREEN, 1);
here what 1 means. what do you mean priority here? Does it mean that if I will set some command at 1 some at 2 some at 3 they will come into that order i.e.:
all 0 will first
than all 1
...will go like this.
What i was trying to acheive is:
Have some 12 option to choose from and would like that I should show first six on first screen with an option More.. and than all other on next screen. I am using Command class here. Is it possible?
Pl give me your suggestion.
regards,
Arun :roll:
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you need to have two screens: The first one contains the first 6 buttons and a "next page" button which links to the second page; The second page contains the rest 6 buttons and a "previous page" button linking to the first page.
 
arun mahajan
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Michael,
But what is the priority means here? What exactly is this aatribute for? Ca you pl explain?
regards,
arun
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, according to MIDP API doc:

The application uses the priority
value to describe the importance of this command relative to other commands
on the same screen. Priority values are integers, where a lower number
indicates greater importance. The actual values are chosen by the
application. A priority value of one might indicate the most important
command, priority values of two, three, four, and so on indicate commands
of lesser importance.
Typically,
the implementation first chooses the placement of a command based on
the type of command and then places similar commands based on a priority
order. This could mean that the command with the highest priority is
placed so that user can trigger it directly and that commands with lower
priority are placed on a menu. It is not an error for there to be commands
on the same screen with the same priorities and types. If this occurs, the
implementation will choose the order in which they are presented.

Priorities should determine the relative placements of buttons in the SAME display. I think the actual behaviour is device specific. But it cannot push the low priority buttons to the next display.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic