Dr. Vesselin Bontchev wrote:
Hello folks,
Could somebody point me to some kind of tutorial about how to support the 5-way navigation of the Treo devices?
The Treo6xx developer docs cover this stuff. They include a whole
section on focus ring control.
It is my understanding that, if the application is designed properly, on a Treo the user could move through the various elements of the forms only with the 5-way control; no need to tap on the screen.
Yup, that's the point; no stylus required.
I also have the vague idea that this is achieved by adding a "form naviganition resource" (or resources? for each form, I mean) to the application and then using the FrmNav* functions - but I'd like to see an example of how it is actually done.
You don't need an fnav resource, because the system will set up default
behaviour for you anyway if an fnav is not found for the form. An fnav
resource is a good idea, however, as it allows you to control things in
a more specific way. The default behaviour is OK, but not always
precisely what you want.
Things get even more complicated by the fact that I don't have a Treo device and couldn't even make the Treo simulator work on my machine (it crashes). :-(
If you want to do your own stuff with navigation on a Treo, then I don't
see how you are going to make any good progress without a navigation
friendly simulator or device. Other devices/sinulators will give you no
indication about what your navigation code is doing, so, IMHO, it's
perhaps pointless to even try. All simulators seem to be a little
finicky, but both the 600 and 650 simulators work OK for me. The 650
sim creates a "SimSlotDriverVolume" file in a root folder called "Palm"
on my device, and if that gets corrupted (like I've added a bad acting
app which crashes upon reset) then it can certainly cause problems. On
the 650 sim, deleting that file is a hard reset.
Bob.
Bob.
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/