Hello Guest it is March 28, 2024, 05:08:47 PM

Author Topic: Screen Editor - Hide bar  (Read 2605 times)

0 Members and 1 Guest are viewing this topic.

Screen Editor - Hide bar
« 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
Re: Screen Editor - Hide bar
« Reply #1 on: January 18, 2018, 01:30:24 PM »
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.
Newfangled Solutions Helpdesk: http://support.machsupport.com
YouTube Support Channel: https://www.youtube.com/c/MachSupportOfficial

Offline smurph

*
  • *
  •  1,544 1,544
  • "That there... that's an RV."
    • View Profile
Re: Screen Editor - Hide bar
« Reply #2 on: January 18, 2018, 07:22:03 PM »
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
Re: Screen Editor - Hide bar
« Reply #3 on: January 19, 2018, 09:50:41 AM »
Thank you Steve. I will try that.

Is there a way to start Mach in fullscreen?

Thanks,
Martin

Offline smurph

*
  • *
  •  1,544 1,544
  • "That there... that's an RV."
    • View Profile
Re: Screen Editor - Hide bar
« Reply #4 on: January 19, 2018, 04:57:49 PM »
If you close it in full screen, it will open in full screen. 

Steve

Offline TMI

*
  •  3 3
    • View Profile
Re: Screen Editor - Hide bar
« Reply #5 on: September 23, 2019, 01:32:23 AM »
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

Offline smurph

*
  • *
  •  1,544 1,544
  • "That there... that's an RV."
    • View Profile
Re: Screen Editor - Hide bar
« Reply #6 on: September 23, 2019, 12:48:49 PM »
?  It is only one line.

scr.ShowMenu(false);

Offline TMI

*
  •  3 3
    • View Profile
Re: Screen Editor - Hide bar
« Reply #7 on: September 23, 2019, 12:53:43 PM »
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.

Offline smurph

*
  • *
  •  1,544 1,544
  • "That there... that's an RV."
    • View Profile
Re: Screen Editor - Hide bar
« Reply #8 on: September 23, 2019, 01:14:12 PM »
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

Offline TMI

*
  •  3 3
    • View Profile
Re: Screen Editor - Hide bar
« Reply #9 on: September 23, 2019, 01:33:31 PM »
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.