Hello Guest it is March 28, 2024, 04:48:13 PM

Author Topic: Screen Set Ideas  (Read 183750 times)

0 Members and 1 Guest are viewing this topic.

Re: Screen Set Ideas
« Reply #130 on: September 03, 2014, 07:44:38 PM »
I do like the square better

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Screen Set Ideas
« Reply #131 on: September 03, 2014, 11:30:40 PM »
Man, that's a lot of info.

I sure hope they add the ability to create our own LED's, as those round ones look like they came from a DOS program..
What is wrong with the LEDs?  The fact that they are round?  If so, you just change the shape property to square and get Mach3 style LEDs.

Steve


The round ones appear to be very low resolution, and the graphic quality looks poor compared to everything else on the screen. Any chance of getting image based LED's like Mach3 has, so we can create our own?
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Screen Set Ideas
« Reply #132 on: September 03, 2014, 11:39:54 PM »
I've been playing around with a panel script Freeman had posted, Basically was trying to get an idea what is going on.
Thou have to admit not following all this Lua panel scripting. But did find I could get some basic information and compute some data from mouse events by using mouse down and and mouse up.
Found that the onSize() function is not working correctly

Getting the size of the Lua Panel and resizing the inserted wxPanel containing my image is where I'm getting stuck.  There's no reason to move forward with the rest of my probing/touch off script until I can resize the embedded image correctly.  If Steve or Brian can enlighten us (especially me) I really would appreciate it.

Using the attached image, I have a Lua Panel (red border) with an inner wxPanel (yellow border).  The paint event draws my image fine.  My problem is that I cannot get the wxPanel to resize to the full extent of the outer Lua Panel.

WARNING - the attached script is very incomplete, it is a snapshot of what I'm doing at this very moment.


-Freeman

« Last Edit: September 03, 2014, 11:45:44 PM by Analias »
I'm not a complete idiot...
    there are some parts missing.

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Screen Set Ideas
« Reply #133 on: September 04, 2014, 01:58:11 AM »
Analias,

    If I am understanding you correctly, you want the Bit-Map to scale with the panel correct?
If so I have attached some code that will work.

It pulls the already existing "Bolt Hole" circle Jpeg for the example. so you will need to change your paths back...
it assumes the bolt hole jped is in the c:\Mach4Hobby\Wizards folder... you will also need to change back your bitmap
type to PNG.

When you change the size of your Screen set, the Bitmap that is in your lua panel resizes with the panel.
NOTE: you can use some of the High quality resize params, but your still going to lose some resolution at larger sizes.

in your event call, I put "--ADDED THIS!!!!!!!!!" after the crap I added to make it work.

Scott
« Last Edit: September 04, 2014, 02:02:27 AM by poppabear »
fun times
(No subject)
« Reply #134 on: September 04, 2014, 04:32:35 AM »
Thanks Scott I'll have to look at the code later today after work. I appreciate the feedback.

-Freeman


Sent from my Xoom using Tapatalk
I'm not a complete idiot...
    there are some parts missing.
Re: Screen Set Ideas
« Reply #135 on: September 04, 2014, 12:17:29 PM »
Had some luck with Freeman's Panel Scripting Code and Scott's Cool additions but had to make a couple of changes to get it to Scale and Stretch correctly for me.
works pretty good right to left but top to bottom its off a bit in stand alone mode,
but when embedded it needed tweaking to get it to work right. (framing was taking over I believe)

Sorry I'm not much on those message boxes, seem to be a distraction to me. (Maybe a timer to close would make it more functional and make me happier?)  ;D


« Last Edit: September 05, 2014, 06:16:42 AM by Ya-Nvr-No »

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Screen Set Ideas
« Reply #136 on: September 04, 2014, 01:20:34 PM »
so, I compared your code with mine, where did you make the changes for it to scale right for you?
I don't see where you changed any of the scaling code...
:)
fun times
Re: Screen Set Ideas
« Reply #137 on: September 05, 2014, 05:22:28 PM »
I was playing around with adding timers to my tool sheet, and created a little script that I put in the plc script (at the end) to show me the what current modes I am in.
I needed to find a way to make sure the Tool timer only tracked cut/feed times. So during a run cycle the history gets updated with the current G codes. Helped me in seeing how gcodes are tracked and used.

Code: [Select]
local inst = mc.mcGetInstance();

if (inCycle == 1) then 
    mode1 = mc.mcCtrlGetModalGroup(inst,1,'0')
    mc.mcCntlSetLastError(inst, "mode1 = G" .. tostring(mode1));
    mode2 = mc.mcCtrlGetModalGroup(inst,2,'0')
    mc.mcCntlSetLastError(inst, "mode2 = G" .. tostring(mode2));
    mode3 = mc.mcCtrlGetModalGroup(inst,3,'0')
    mc.mcCntlSetLastError(inst, "mode3 = G" .. tostring(mode3));
    mode4 = mc.mcCtrlGetModalGroup(inst,4,'0')
    mc.mcCntlSetLastError(inst, "mode4 = G" .. tostring(mode4));
    mode5 = mc.mcCtrlGetModalGroup(inst,5,'0')
    mc.mcCntlSetLastError(inst, "mode5 = G" .. tostring(mode5));
    mode6 = mc.mcCtrlGetModalGroup(inst,6,'0')
    mc.mcCntlSetLastError(inst, "mode6 = G" .. tostring(mode6));
    mode7 = mc.mcCtrlGetModalGroup(inst,7,'0')
    mc.mcCntlSetLastError(inst, "mode7 = G" .. tostring(mode7));
    mode8 = mc.mcCtrlGetModalGroup(inst,8,'0')
    mc.mcCntlSetLastError(inst, "mode8 = G" .. tostring(mode8));
    mode9 = mc.mcCtrlGetModalGroup(inst,9,'0')
    mc.mcCntlSetLastError(inst, "mode9 = G" .. tostring(mode9));
    mode10 = mc.mcCtrlGetModalGroup(inst,10,'0')
    mc.mcCntlSetLastError(inst, "mode10 = G" .. tostring(mode10));
    mode11 = mc.mcCtrlGetModalGroup(inst,11,'0')
    mc.mcCntlSetLastError(inst, "mode11 = G" .. tostring(mode11));
    mode12 = mc.mcCtrlGetModalGroup(inst,12,'0')
    mc.mcCntlSetLastError(inst, "mode12 = G" .. tostring(mode12));
    mode13 = mc.mcCtrlGetModalGroup(inst,13,'0')
    mc.mcCntlSetLastError(inst, "mode13 = G" .. tostring(mode13));
    mode14 = mc.mcCtrlGetModalGroup(inst,14,'0')
    mc.mcCntlSetLastError(inst, "mode14 = G" .. tostring(mode14));
    mode15 = mc.mcCtrlGetModalGroup(inst,15,'0')
    mc.mcCntlSetLastError(inst, "mode15 = G" .. tostring(mode15));
end
Re: Screen Set Ideas
« Reply #138 on: September 05, 2014, 11:10:31 PM »
Scott, after swapping back in the code to load my image, your changes worked flawlessly.  I'll spend some time this weekend writing up the code to convert mouse click X-Y into operations  (Probe-X, Probe-Z, Edge probe, etc.).

Thanks for the insight.


-Freeman
« Last Edit: September 05, 2014, 11:12:06 PM by Analias »
I'm not a complete idiot...
    there are some parts missing.

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Screen Set Ideas
« Reply #139 on: September 06, 2014, 08:39:28 AM »
I like what your doing with your probing code, I would love a copy when your done!
If it is commercial, then how about a discount!  Hehehehe

On your Bit Map, I see your putting hot spots, you might what to set those areas as a percentage of
the bitmaps X.Y since if a user scales it, then those locations in true x.y will change.
But if the areas of in some Percentage type of area, i.e.  spot 1 is from 20% X to 30% X, (same idea for Y).
Then those locations would also scale with the bit map scaling.

One last thing, the HTML dialogs/Bitmaps lend them selves better to hot spots.

Scott
fun times