Kiosk plugin problems

I’m trying to hide the menu on our solution using:

plugins.kioskmode.setMenuVisible(false)
plugins.kioskmode.setToolBarVisible(false)

It works perfectly in Windows but does not work in the Mac environment. What am I missing. K

As far as I remember when I tried to do something like that in one of our plugins is that OS X does not allow this…

Dumb question, does your plugin work OK on the Mac?

No Dumb question but the menubar plugin can indeed remove menu’s but not the menubar so I am afraid you will not be much better off.

No, that works for me just fine. Just didn’t want our customers to see Servoy help, very confusing, and the edit and draw items. Also, they can get into preferences and perhaps cause mischief.

Would have saved me a lot of time if Servoy documentation mentioned that the kiosk menu plugins didn’t work on the MAC.

Thank for your help. We will get your Menu plugin. K

Thank for your help. We will get your Menu plugin. K

Please test first Kurt!

removing some elements in the menubar with the plugin of Marcel is working just fine on OSX ;-)

completly removing? that I don’t know.

While hiding and showing the menu bar worked fine in 4.0, it does not work anymore after the upgrade to 4.1. Is this platform specific? Does anyone else experience this problem?

I work on OS X 10.5.5., Java SE 6, and Servoy 4.1.0 build 651.

Thanks,
Reto

as far as i can see nothing is changed to the kiosk plugin it self, that one is pretty much the same thing as in 4.0
so is something else changed in the mean time?

Or if you just have a 4.0 installation besides a 4.1 on the same machine you do see a difference in behavior with exactly the same solution?

The same code still works in 4.0 on the same machine. On loading the solution I do

plugins.kioskmode.setMenuVisible(false);
globals.g_menuState = 0;

On a button I have the following code attached:

globals.g_menuState = (globals.g_menuState?0:1);   // toggle global var
plugins.kioskmode.setMenuVisible( globals.g_menuState?true:false  );

In 4.0 both work fine, in 4.1 both don’t…

I use exactly the same method to toggle full screen mode and that still works.

Thanks!

PS: I had to use the global variable with 0 and 1, just using booleans did not work.

please make a case for this with a simple sample solution.
I dont see any changes in that area between 4.0 and 4.1 so dont know why it suddenly breaks

Tried the test solution and it worked in 4.0 but not in 4.1.

Reto

test.servoy (3.25 KB)

you are testing it in the developer?

The developer doesnt allow you to remove the menu bar
but this could be something that is more 3.5, i guess we could remove that restriction in 4.x

Yes, I did work in developer. Also in 4.0, where it worked, though… Strange…

I’ll try later if it works in client. Would be nice, if it worked in 4.1 developer as well.

Thanks,
Reto

Hi,

Regarding the Kiosk plugins, the following had been solved (4.1, 4.1+ changes):

  • now you are allowed to hide the menu, even being in the developer;
  • in the case of solution change or restarting the debug client, the menu and toolbar state are restored (even if they had been hide in a previous situation);

Regards,

Alex