Hello Guest it is November 18, 2019, 10:58:19 AM

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 - zealot416

Pages: 1
1
Mach4 General Discussion / Re: Bitmap buttons left up action
« on: June 23, 2016, 09:25:58 AM »
Interesting. Tacking on enabling/disabling the panel to the controls enable/disable toggle button fixed the problem.

2
Mach4 General Discussion / Re: Bitmap buttons left up action
« on: June 23, 2016, 08:34:49 AM »
At a quick glance you are trying to put the bitmaps onto "childPanel" that does not exist, try "panel" thats already declared ;-)

another thing thats ver good practice is to use "event:Skip()" within each event at the end

DazTheGas
Shoot! That is left over from when I tried seeing if putting another panel on top would fix the problem. Even with those lines fixed it still wont work after leaving the edit mode :/

3
Mach4 General Discussion / Re: Bitmap buttons left up action
« on: June 22, 2016, 05:01:29 PM »
For some reason my code stops working after i edit the screen (even if i enter edit mode and then immediately exit it). It works perfectly fine at start up. Here is an abridged version of the code if anyone has any ideas.

Code: [Select]
local jog_btn_up ="blah"
local jog_btn_dn ="blah"
local jog_btn_lt ="blah"
local jog_btn_rt ="blah"

local panel = mcLuaPanelParent;
local window = panel:GetParent();
window:SetBackgroundColour(wx.wxColour(230, 230, 230));

local up_btn = wx.wxBitmapButton( childPanel, wx.wxID_ANY, wx.wxBitmap( jog_btn_up, wx.wxBITMAP_TYPE_ANY ), wx.wxPoint(100,0), wx.wxSize(60,70))
local dn_btn = wx.wxBitmapButton( childPanel, wx.wxID_ANY, wx.wxBitmap( jog_btn_dn, wx.wxBITMAP_TYPE_ANY ), wx.wxPoint(100,80), wx.wxSize(60,70))
local lt_btn = wx.wxBitmapButton( childPanel, wx.wxID_ANY, wx.wxBitmap( jog_btn_lt, wx.wxBITMAP_TYPE_ANY ), wx.wxPoint(20,45), wx.wxSize(70,60))
local rt_btn = wx.wxBitmapButton( childPanel, wx.wxID_ANY, wx.wxBitmap( jog_btn_rt, wx.wxBITMAP_TYPE_ANY ), wx.wxPoint(170,45), wx.wxSize(70,60))


up_btn:Connect(wx.wxEVT_LEFT_UP,
                function(event)
                   --blah
                end)
               
up_btn:Connect(wx.wxEVT_LEFT_DOWN,
                function(event)
                    --blah
                end)
up_btn:Connect(wx.wxEVT_LEAVE_WINDOW,
                function(event)
                    --blah         
                end)
dn_btn:Connect(wx.wxEVT_LEFT_UP,
                function(event)
                    --blah 
                end)
               
dn_btn:Connect(wx.wxEVT_LEFT_DOWN,
                function(event)
                    --blah
                end)
dn_btn:Connect(wx.wxEVT_LEAVE_WINDOW,
                function(event)
                    --blah          
                end)
rt_btn:Connect(wx.wxEVT_LEFT_UP,
                function(event)
                    --blah  
                end)
               
rt_btn:Connect(wx.wxEVT_LEFT_DOWN,
                function(event)
                    --blah
                end)
rt_btn:Connect(wx.wxEVT_LEAVE_WINDOW,
                function(event)
                   --blah             
                end)
lt_btn:Connect(wx.wxEVT_LEFT_UP,
                function(event)
                    --blah   
                end)
               
lt_btn:Connect(wx.wxEVT_LEFT_DOWN,
                function(event)
                   --blah
                end)
lt_btn:Connect(wx.wxEVT_LEAVE_WINDOW,
                function(event)
                    --blah            
                end)
               


4
Mach4 General Discussion / Re: Bitmap buttons left up action
« on: June 22, 2016, 02:24:17 PM »
Left Down = starts jog
Left up = ends jog

the goal is to have the machine jog so long as the button is held down

5
Mach4 General Discussion / Re: Bitmap buttons left up action
« on: June 21, 2016, 04:14:22 PM »
Cool. Thank you! :D

6
Mach4 General Discussion / Re: Bitmap buttons left up action
« on: June 21, 2016, 03:13:56 PM »
Right now I am using bitmap arrows for my jog controls. Since I never want Jog Off to be aborted, should i replace the arrows with normal buttons or do you know of a workaround?

7
Mach4 General Discussion / Bitmap buttons left up action
« on: June 21, 2016, 01:52:33 PM »
Hi everyone,

I have noticed that if I click and hold on a bitmap button and move the mouse off of the button before releasing then the left up action/script does not fire. I have tested this with a few bitmap buttons and this is the case for all of them but not the case for regular buttons. Does anyone else have this issue and if so, have you found a way around it (aside from replacing them with regular buttons)?

Thank You,
Zealot416

8
Mach4 General Discussion / Drag on toolpath does Zoom/Pan toggle?
« on: June 15, 2016, 09:07:12 AM »
Hi everyone,

I am currently working on rebuilding a simple mach3 screenset in mach4. The only functionalities I have left to add are the Dynamic Zoom and Dynamic Pan buttons, OEM Buttons 318 and 319 from Mach 3: "Drag on toolpath does Zoom toggle" and "Drag on toolpath does Pan toggle". Does anyone have any idea how these can be implemented in mach4?

Thank you,
Zealot416

Pages: 1