Hello Guest it is March 28, 2024, 01:21:55 PM

Author Topic: ScreenSet Question  (Read 25741 times)

0 Members and 1 Guest are viewing this topic.

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: ScreenSet Question
« Reply #40 on: May 12, 2014, 07:00:04 PM »
OK, I figured out a little bit about the Pages (not tabs).

Default, is the background page, and everything placed on Default will display on every page.
Changing pages from a button is actually very easy.
Add multiple pages, and when you add a button, and click on its Events (lightning bolt), there's a GoTo Page option, which lets you select the page to go to.

I don't know the Lua call to change pages, which I think Terry's looking for?
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline RICH

*
  • *
  •  7,427 7,427
    • View Profile
Re: ScreenSet Question
« Reply #41 on: May 12, 2014, 07:46:52 PM »
Thanks Gerry for the info.
Now I can try out some things for the lathe screen that had me baffled.

RICH
Re: ScreenSet Question
« Reply #42 on: May 12, 2014, 08:35:49 PM »
The first page is always displayed as gerry said
so if nothing is on it, nothing gets displayed
all other pages can be called and jumped around with buttons
have not found a scr command to jump to a page.

has to be one... don't ya think?

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: ScreenSet Question
« Reply #43 on: May 12, 2014, 08:41:29 PM »
I asked Brian on the Yahoo group. Waiting to hear back.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: ScreenSet Question
« Reply #44 on: May 12, 2014, 08:56:58 PM »
OK lets get this straight I have tabs working . Craig gave me /explained thecode and it works.

ARE yall saying there are ALSO pages we can work with or are pages and TABs the same thing. The only problem I find with tabs and using open exit scripts IS they run when Mach4 starts UP and shuts DOWN it runs again. NOT GOOD

(;-) TP

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: ScreenSet Question
« Reply #45 on: May 12, 2014, 09:07:52 PM »
Yes, read my previous posts. There are pages, just like Mach3.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: ScreenSet Question
« Reply #46 on: May 12, 2014, 09:11:58 PM »
found this works to change pages  ;D

rc = scr.ShowPage('2'); -- two is the page #
« Last Edit: May 12, 2014, 09:18:10 PM by Ya-Nvr-No »
Re: ScreenSet Question
« Reply #47 on: May 12, 2014, 09:29:34 PM »
Excellent ! MOST excellent.
Thanks Gerry, my goodness, the possibilities seem endless !
Russ

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: ScreenSet Question
« Reply #48 on: May 12, 2014, 09:35:41 PM »
Is there a list of the .scr calls somewhere?

This is going to be very painful without documentation.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: ScreenSet Question
« Reply #49 on: May 12, 2014, 09:42:31 PM »
i found it by starting to retype a command and the options came up for me to choose from, kind of a lucky oops

the list of wx.wxlua file I posted was created that way, what a tedious process
copied and pasted every command I could find that started with a wx.wx into a script then cut and pasted all to a text file.


also the load script routine is where the global variables get set, so I believe using a pageId = 2 would be the page it starts in

pageId = 0
screenId = 0
testcount = 0
machState = 0
machStateOld = -1
machEnabled = 0
machWasEnabled = 0
enableBlink = 0
enableBlinkCount = 0
jogstate1 = 0
a = 0
Hz = 0
« Last Edit: May 12, 2014, 09:50:53 PM by Ya-Nvr-No »