Enabling Scoll via hard buttons

Discuss OrbForms Designer and PocketC Architect

Postby bigjoejo on Sun Aug 28, 2005 11:26 pm

Is it possible to scroll a through a field using the hard buttons (up/down)? I'm finding it difficult to use the scroll bars on the Palm Zire 31 model which seems to have lower resolution than my T2.

Posts: 25
Joined: Sun Jan 11, 2004 8:08 pm

Postby Gazza on Sun Aug 28, 2005 11:43 pm

I have a little problem with my Handheld at the mo, so I can't try this:

This may work:

Posts: 146
Joined: Sat Jan 12, 2002 1:56 am
Location: United Kingdom

Postby dewey on Mon Aug 29, 2005 4:17 am

You need to create an onhkey handler. In that handler, look for the "evUp" and "evDown" keys. Call UIField.scroll to scroll the field bby the number of lines desired. Then call UIScroll.update(field) to update the scrollbar. Take a look at the UISample sample, and add the following handler to memoForm.oc. -3 and 3 are used because the field is 3 lines tall.

Code: Select all
handler memoForm.onhkey() {
  if (event.key == evUp) {
  } else if (event.key == evDown) {
Site Admin
Posts: 749
Joined: Sun Oct 21, 2007 5:12 am

Return to OrbForms Designer and PocketC Architect

Who is online

Users browsing this forum: No registered users and 1 guest