Hello Guest it is March 28, 2024, 05:12:12 PM

Author Topic: Mach4 screen GRAPHICS -- makin' it Purdy  (Read 38415 times)

0 Members and 1 Guest are viewing this topic.

Offline Bodini

*
  •  216 216
    • View Profile
Mach4 screen GRAPHICS -- makin' it Purdy
« Reply #10 on: March 10, 2015, 06:24:28 PM »
I'm not at a computer right now, by try (tostring('VALUE') on the value you want to pass.

Offline Bodini

*
  •  216 216
    • View Profile
Mach4 screen GRAPHICS -- makin' it Purdy
« Reply #11 on: March 10, 2015, 06:26:17 PM »
I'm not at a computer right now, by try (tostring('VALUE') on the value you want to pass.
Damn phone, damn Tapatalk... (tostring('VALUE')) is what I meant.

Offline simpson36

*
  •  1,369 1,369
    • View Profile
Re: Mach4 screen GRAPHICS -- makin' it Purdy
« Reply #12 on: March 10, 2015, 06:27:55 PM »
I'm not at a computer right now, by try (tostring('VALUE') on the value you want to pass.
Damn phone, damn Tapatalk... (tostring('VALUE')) is what I meant.

No problem, got that. I'll give it a try.

Offline simpson36

*
  •  1,369 1,369
    • View Profile
Re: Mach4 screen GRAPHICS -- makin' it Purdy
« Reply #13 on: March 10, 2015, 06:39:58 PM »
No joy.

Just to clarify, the 'Color' property is not working. Some of the others do work so I suspect this is just a dead ant.

ON/OFF and position work. It's sort of fun to make the thing jump all over the screen, but not particularly useful   :)

On the other hand, the 'hidden' property has no effect so jumping the LED into oblivion and back may be a workaround for making it 'disappear'.

In another thread, it was stated that some or the scr.********* command have been replaced by mc.*********, but so far I cannot find any mc.*********xx functions that even have the word 'prop' on them. I'll keep on tinkering . . . 

Offline Bodini

*
  •  216 216
    • View Profile
Re: Mach4 screen GRAPHICS -- makin' it Purdy
« Reply #14 on: March 10, 2015, 07:33:09 PM »
I poked at it a little here.
Code: [Select]
color = scr.GetProperty('led73','Color')
wx.wxMessageBox (color)

It reported back some numbers as I changed the Led. Red is 0, Purple is 32, Blue is 4. If these follow some convention, tell me about it. :)


Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Mach4 screen GRAPHICS -- makin' it Purdy
« Reply #15 on: March 10, 2015, 07:38:46 PM »
It shouldn't be that hard to get some documentation on this stuff.
Just a simple list would go a long way.
Gerry

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

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

Offline simpson36

*
  •  1,369 1,369
    • View Profile
Re: Mach4 screen GRAPHICS -- makin' it Purdy
« Reply #16 on: March 10, 2015, 07:50:22 PM »
I poked at it a little here.
Code: [Select]
color = scr.GetProperty('led73','Color')
wx.wxMessageBox (color)

It reported back some numbers as I changed the Led. Red is 0, Purple is 32, Blue is 4. If these follow some convention, tell me about it. :)

You are wise, Obi-Wan!   :-*

That was the ticket. Reading out the codes was brilliant! Use those values and Bada-Bingg!  The colors change!

One big cookie for the man with the flag (the 'made in USA flag')

Offline simpson36

*
  •  1,369 1,369
    • View Profile
Re: Mach4 screen GRAPHICS -- makin' it Purdy
« Reply #17 on: March 10, 2015, 07:55:28 PM »
OK, time for some more fun. Checkboxes . .  I'm on it!

Somebody just say how they are supposed to work  . . and look.

Do you just want a Boolean?  . . can do . . but it just seems so . .  minimalist . . .  ;)

Offline simpson36

*
  •  1,369 1,369
    • View Profile
Re: Mach4 screen GRAPHICS -- makin' it Purdy
« Reply #18 on: March 10, 2015, 07:59:45 PM »
Wouldn't cascading checkboxes be more fun?

Check . .

    Are you sure ? . . . .

      But are you REALLY sure? . . . .

       Is that Really REALLY SURE? . . .

        Do you have a note from your MOTHER? . . . .

 ::)

OK, just say how they should work and I'll see if I can make them up . . .  :(


Offline simpson36

*
  •  1,369 1,369
    • View Profile
Re: Mach4 screen GRAPHICS -- makin' it Purdy
« Reply #19 on: March 10, 2015, 08:06:25 PM »
Idea . . .

How about instead of boring check box, a push button? Same control, but lookin' good?

Mo' better . . .

How about a toggle switch?

Actual toggle switch? Oh yeah! Looks real? Oh yeah - a photo of a real switch . . Moves?  . .  oh yeah  . . Handle lights up?  . . Oh YEAH.    ;D

 I already have the transparency part (alpha channel) working . . . just need to get rid of the button outline as it looks a bit stupid just popping up out of nowhere.  :-\
« Last Edit: March 10, 2015, 08:10:42 PM by simpson36 »