ShowNavigationControls

Discussions about creating CAPI applications to run on Android devices
Post Reply
AriSilva
Posts: 333
Joined: July 22nd, 2016, 3:55 pm

ShowNavigationControls

Post by AriSilva » March 25th, 2020, 12:10 pm

I was playing with the savesetting, specifically the
savesetting("CSEntry.Setting.ShowNavigationControls", "Yes/No");
I turned if off with
savesetting("CSEntry.Setting.ShowNavigationControls", "No");
It worked, the menu item disappeared (not visible). But when I tried to turn it on again with
savesetting("CSEntry.Setting.ShowNavigationControls", "Yes");
And It did not work, that is, the menu item is still not visible.
Fortunately the
setproperty("ShowNavigationControls", "Yes");
works, so the navigation controls are shown but not the menu option
Best
Ari

Gregory Martin
Posts: 1290
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: ShowNavigationControls

Post by Gregory Martin » March 26th, 2020, 1:58 pm

This actually works as designed but I can see how it's a bit confusing. From the helps:
If this value is set, then the "Show/Hide Navigation Controls" menu option is hidden. Values: "Yes" (show) or "No" (hide)
So if you set it to Yes or No, the menu option will be hidden. If you want to see the menu option, do this:
savesetting("CSEntry.Setting.ShowNavigationControls", "");

AriSilva
Posts: 333
Joined: July 22nd, 2016, 3:55 pm

Re: ShowNavigationControls

Post by AriSilva » March 27th, 2020, 10:38 am

My fault, I really did not understand the help the first time I read it, but it is written there, no matter what you set, the menu option is hidden.
One other thing that confused me a little bit at the beginning is that some savesetting are written for the Menu, like
"CSEntry.Menu.Help"
others are for the Setting, like
"CSEntry.Setting.ShowNavigationControls"
and I did not understand the difference.
Thanks, Greg
Best
Ari

Post Reply