Hello Guest it is March 29, 2024, 07:38:01 AM

Author Topic: Screen Set Ideas  (Read 183784 times)

0 Members and 1 Guest are viewing this topic.

Re: Screen Set Ideas
« Reply #120 on: August 28, 2014, 08:45:16 PM »
took brian's mpgtest.mcs program and added 3 more axis's

just to show how easy it is.

works good, now if he could provide a script to get an actual MPG dial to control my servos.

Thanks Brian and Brett now quit eating lobster and telling stories and get back to work,  ;D

Update:
and with one number changed you can change the look

local InputsGridSizer  = wx.wxFlexGridSizer( 2, 3, 0, 0 )

and then replaced the textbox with a combo selection dropdown box,
« Last Edit: August 29, 2014, 10:41:26 AM by Ya-Nvr-No »
Re: Screen Set Ideas
« Reply #121 on: August 29, 2014, 03:59:06 PM »
Freeman is correct I can link a button to a compiled script but not a embedded panel.

Kind of thinking I like the button better anyways, as I like popup functional screens.



Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Screen Set Ideas
« Reply #122 on: August 30, 2014, 12:02:33 PM »
Well there is a "Work-A-Round" in a way for showing "Embedded" panels...
Have a Button that sets a variable in your Panel Script that toggles the "Panel:Show(true);" to show, and false to hide it...

Scott
fun times
Re: Screen Set Ideas
« Reply #123 on: August 31, 2014, 09:16:56 PM »
Changed the output led's with buttons, Now I can set the condition of the output and/or it will show me the set conditions.
Re: Screen Set Ideas
« Reply #124 on: September 02, 2014, 01:02:21 PM »
Added a couple of Tool Tip images I'd found and cleaned up to the screen set image manager (Menu, Screen, Manage Images), then attached one to an open location as a Bitmap Buttons
wrote a script and placed it under the "Clicked Script", to toggle both the images and the added text box to show me the correct information.
Now by clicking the image/button it toggles back and forth.

Code: [Select]
function onPaint()
    if (tess == 0) then
    buttonImage = 'frontTP.JPG'
    scr.SetProperty('bbutton29', 'Image', buttonImage);
    scr.SetProperty('txtPost', 'Label', 'Front');
    tess = 1
    else
    buttonImage = 'rearTP.JPG'
    scr.SetProperty('bbutton29', 'Image', buttonImage);
    scr.SetProperty('txtPost', 'Label', 'Rear');
    tess = 0
    end
end

onPaint()
Re: Screen Set Ideas
« Reply #125 on: September 02, 2014, 09:36:55 PM »
I did not quite like the Diagnostic tab so I moved them and added some more. Now I can see everything on one screen.

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Screen Set Ideas
« Reply #126 on: September 02, 2014, 09:49:21 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..
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 #127 on: September 02, 2014, 09:58:39 PM »
I had heard that the led's were being fixed, I was hoping the latest version 1953 would have addressed it. Guess not yet.
was going to change them but kind of want to wait to see the new graphics.

Between that screen and the ability to view and change the variables real time you can pretty much do it all. You can read and write to the registers including modbus, once you have them setup.

« Last Edit: September 02, 2014, 10:00:24 PM by Ya-Nvr-No »
Re: Screen Set Ideas
« Reply #128 on: September 03, 2014, 07:06:34 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

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

function onPaint (event)
    local dc = wx.wxPaintDC(panel);
    local image = wx.wxImage();
    if (not image:LoadFile('C://Mach3//Bitmaps//MachStdMill//test.png', wx.wxBITMAP_TYPE_PNG)) then
        wx.wxLogError("Could not load image from '%s'!", imagePath);
        dc:delete();
        return;
    end
    local bitmap = wx.wxBitmap(image);
    dc:DrawBitmap (bitmap, 0,0, true);
    dc:delete ();
end

function onLeftUp (event)
    local mouseXup = event:GetX();
    local mouseYup = event:GetY();
    local diffX = mouseXup-mouseXdn;
    local diffY = mouseYup-mouseYdn;
    mc.mcCntlSetLastError(inst,"Mouse Click Up Location is @  X: "..tostring(mouseXup)..", Y: "..tostring(mouseYup));
    mc.mcCntlSetLastError(inst,"Difference in X: "..tostring(diffX)..", Y: "..tostring(diffY));
end
function onLeftDown (event)
    mouseXdn = event:GetX();
    mouseYdn = event:GetY();
    mc.mcCntlSetLastError(inst,"Mouse Click Down Location is @  X: "..tostring(mouseXdn)..", Y: "..tostring(mouseYdn));
end


function onSize (event)
    local sized = event:GetSize();
    local width = event:GetWidth();
    local height = event:GetHeight();
    mc.mcCntlSetLastError(inst,"Width: "..tostring(width)..", Height: "..tostring(height));
    event:skip();
end

panel:Connect(wx.wxEVT_PAINT, onPaint)
panel:Connect(wx.wxEVT_LEFT_UP, onLeftUp);
panel:Connect(wx.wxEVT_LEFT_DOWN, onLeftDown);
panel:Connect(wx.wxEVT_SIZE, onSize);

Offline smurph

*
  • *
  •  1,544 1,544
  • "That there... that's an RV."
    • View Profile
Re: Screen Set Ideas
« Reply #129 on: September 03, 2014, 07:22:21 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