Controlling the navigation buttons

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Controlling the navigation buttons

Post by AriSilva »

I would like to know if it is possible to trap the touching of the left arrow button, using something like "onkey".
The reason for that is for the program to take control when the user hits the left arrow, since its behavior is a little bit tricky on my application. The return to previous questions passes thru some questions that the user´s should not see, and we would like to be able to control that.
Best
Ari
Best
Ari
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Controlling the navigation buttons

Post by Gregory Martin »

Can you just set those fields to protected? If so, even when the user moves backwards, they'll never see them.
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Re: Controlling the navigation buttons

Post by AriSilva »

Good suggestion, I´ll do that.
In any case, is there a way to know that the user clicked the left arrow?
Best
Ari
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Controlling the navigation buttons

Post by Gregory Martin »

You could hack together a solution where you could sort of tell if the user clicked on the previous button, but you would have to control for all of these scenarios (like entry on rosters) that would make the solution a limited one. It also wouldn't work properly when using the case tree to move.

Making the fields protected is your best option.
Post Reply