Hello Guest it is April 26, 2024, 12:13:53 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DazTheGas

81
Mach4 General Discussion / Re: Simple one line MDI required
« on: May 30, 2018, 05:47:18 PM »
MyMidi is not a function as such, its just a name that has been assigned to an instance of wxTextCtrl, things like GetValue and SetValue are functions of this class, so to get a list of the functions contained in this class you would need to look at something like http://docs.wxwidgets.org/3.1/classwx_text_ctrl.html
Although this is for C++ the function names etc are the same for wxLua.

DazTheGas

82
Mach4 General Discussion / Re: Mach4 Homing Slave
« on: May 30, 2018, 03:12:29 PM »
You should`nt have A(3) checked as that denotes motor 3 needs homing and you have already slaved that with motor 1. Try unchecking A alltogether

DazTheGas

83
Mach4 General Discussion / Re: Simple one line MDI required
« on: May 29, 2018, 05:41:56 PM »
MyMdi:SetValue("") after mc.mcCntlMdiExecute(inst,mdiCode) will clear the txt and mc.mcCntlSetLastError(inst,mdiCode) will add the txt to the message box.

DazTheGas

84
Mach4 General Discussion / Re: Simple one line MDI required
« on: May 29, 2018, 10:41:48 AM »
To give you a little boost try using a Lua Panel from the editor menu and insert the code below

Code: [Select]
local inst = mc.mcGetInstance()
local panel = mcLuaPanelParent
local MyMdi = wx.wxTextCtrl( panel, wx.wxID_ANY, "", wx.wxDefaultPosition, wx.wxSize( 200,40 ), wx.wxTE_PROCESS_ENTER )

MyMdi:Connect( wx.wxEVT_COMMAND_TEXT_ENTER, function(event)
local mdiCode = MyMdi:GetValue()
--wx.wxMessageBox(mdiCode)
mc.mcCntlMdiExecute(inst,mdiCode)
event:Skip()
end )

Tested and working ;-)

DazTheGas

85
Mach4 Plugins / Re: mcX360 Plugin for Lua
« on: May 11, 2018, 12:37:30 PM »
Can you be a bit more precise on what messages?

DazTheGas

86
Mach4 General Discussion / Re: y
« on: May 05, 2018, 09:24:12 AM »
Actualy Y for

87
Mach4 Plugins / Re: unPlugin V1.0.0
« on: April 10, 2018, 02:24:24 AM »
I have just tested this with latest version and seems fine here

DazTheGas

88
Mach4 General Discussion / Re: How do I make "Go to Work 0" work?
« on: April 02, 2018, 05:11:51 PM »
I sometimes have the same problem myself after doing a probe move, I overcome this by pressing the reset before the GotoZero.

DazTheGas

89
Mach4 General Discussion / Re: Notify on close
« on: March 24, 2018, 02:08:20 PM »
You will need to go to C:\Users\<your username>\AppData\Roaming and edit the Mach4GUI.ini file from DontConfirmExit=1 to DontConfirmExit=0

DazTheGas

90
Mach4 General Discussion / Re: Functions vs Actions
« on: March 23, 2018, 03:32:06 PM »
Yep thats pretty normal, think I did a video on this a while back??

DazTheGas