Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: Penguin on January 15, 2018, 07:14:51 AM
-
Hi everyone,
Is there a way to hide the toolbar with File, View, Config....? I have a pretty small touchscreen and hiding the bar would give some more estate.
Thank you,
Martin
-
I don't know of a way to remove the tool bar, but you have the options to make the window full screen by going to View>Full Screen in Mach4. I hope this helps and I will report back if I hear of another solution for you.
-
In the screen load script, insert the line:
scr.ShowMenu(false);
to get the menu back:
scr.ShowMenu(true);
Be careful not to paint yourself into a corner! :) Put a button on a tab to turn it back on, etc...
Steve
-
Thank you Steve. I will try that.
Is there a way to start Mach in fullscreen?
Thanks,
Martin
-
If you close it in full screen, it will open in full screen.
Steve
-
Hey Steve- Can you show an example of the code that you would need to have in the screen load script?
In the screen load script, insert the line:
scr.ShowMenu(false);
to get the menu back:
scr.ShowMenu(true);
Be careful not to paint yourself into a corner! :) Put a button on a tab to turn it back on, etc...
Steve
-
? It is only one line.
scr.ShowMenu(false);
-
I guess I am looking for the don't back yourself into the corner button code.. ;D Or how to make sure I don't back myself into the corner.. Making a button that I can press on and off to turn the menu turn on or off.
-
The painting yourself into a corner comment was about making sure you leave a way to get the menu bar back on the screen if you need it. Edit the screen and drop a button on any page/tab you want. Or create a new tab, etc...
Just a button with:
scr.ShowMenu(true); --in the button up event script property
Or a toggle button to toggle between on and off
scr.ShowMenu(true); -- in the button up event script property
and
scr.ShowMenu(false); -- in the button down event script property
Use the screen load script to set the initial state of the menu bar, if needed.
Steve
-
Sweet!! Thanks it worked great.. Now to get that button password protected. In order to keep guys out of that section if they do not have the password.