Hello Guest it is April 25, 2024, 06:43:44 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

451
Mach4 General Discussion / Re: Bitmap buttons left up action
« on: June 22, 2016, 06:30:56 PM »
Simple question, and maybe I'm missing something - why not use the "left down" action and/or script instead of "left up"?  If this is something that you are sure yo never want the user to change their mind and abort the action, then "left down" would execute as soon as they clicked.

Bob

Just a different scenario, unfortunately the bitmap button has a leave window event attached to it, so if used for jogging and you move the mouse off the button you will lose the button up event to turn jogging off.

DazTheGas

452
Mach4 General Discussion / Re: Bitmap buttons left up action
« on: June 22, 2016, 06:24:26 PM »
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

453
Mach4 General Discussion / Re: Bitmap buttons left up action
« on: June 21, 2016, 03:53:44 PM »
Then on a case like that then not, the only work around i know would be to use a panel then inside the panel create a bitmap button and use the event codes to your likeing. you can create such things with formbuilder.

Example from my own screen might get you on track ;-)

Code: [Select]
local cstart_btn_dis = btn_path.."CStart_dis.png"
local cstart_btn_dwn = btn_path.."CStart_dwn.png"
local cstart_btn_up = btn_path.."CStart_up.png"
local cstart_btn_hov = btn_path.."CStart_hov.png"

Cont.cstart_btn = wx.wxBitmapButton( Cont.Panel, wx.wxID_ANY, wx.wxBitmap( cstart_btn_up, wx.wxBITMAP_TYPE_ANY ), wx.wxPoint(10,440), wx.wxDefaultSize, wx.wxBU_AUTODRAW + wx.wxNO_BORDER)
Cont.cstart_btn:SetBackgroundColour( wx.wxSystemSettings.GetColour( wx.wxSYS_COLOUR_ACTIVECAPTION ) )

Cont.cstart_btn:SetBitmapDisabled( wx.wxBitmap( cstart_btn_dis, wx.wxBITMAP_TYPE_ANY ) )
Cont.cstart_btn:SetBitmapSelected( wx.wxBitmap( cstart_btn_dwn, wx.wxBITMAP_TYPE_ANY ) )
Cont.cstart_btn:SetBitmapFocus( wx.wxBitmap( cstart_btn_up, wx.wxBITMAP_TYPE_ANY ) )
Cont.cstart_btn:SetBitmapHover( wx.wxBitmap( cstart_btn_hov, wx.wxBITMAP_TYPE_ANY ) )
Cont.cstart_btn:SetToolTip( "Cycle Start" )


Cont.cstart_btn:Connect( wx.wxEVT_LEFT_UP, function(event)
        mc.mcCntlCycleStart(inst);
Cont.main_gcode:SetFocus()
gcLine_timer:Start(100)
        event:Skip()
        end )

The code above is useing the EVT_LEFT_UP but you can add the EVT_LEFT_DOWN to start the jogging and then the EVT_LEFT_UP and EVT_LEAVE_WINDOW to stop the joggin.

DazTheGas

454
Mach4 General Discussion / Re: Bitmap buttons left up action
« on: June 21, 2016, 03:00:19 PM »
Buttons use a set of events to determine what to act on, these can be EVT_LEAVE_WINDOW, EVT_LEFT_DOWN, EVT_LEFT_UP, EVT_MIDDLE_DCLICK, EVT_MIDDLE_DOWN and loads more.

Its more than likely that the bitmap button class in mach4 has an event trigger for EVT_LEAVE_WINDOW which is good practice to set this to do nothing, giving the user the chance to abort the button press.

DazTheGas

455
Mach4 General Discussion / Re: Mach4 probe setup problems
« on: June 20, 2016, 03:38:38 PM »
Yes v184 is the latest plugin.

DazTheGas

456
Mach4 General Discussion / Re: Mach4 probe setup problems
« on: June 20, 2016, 02:55:48 PM »
If you are using the ESS plugin beta 184 the probing (G31) is not yet functional but should be soon. There are plenty of notes about this on the Warp9 forum.

DazTheGas

457
Mach4 General Discussion / Re: GUI crash on Mach Config window
« on: June 19, 2016, 04:08:06 AM »
This is a focus issue between 2 windows, a quick but dirty way to sort this is to load your task manager and stop "mach configuration" NOT the core, this will destroy the configuration window and give focus back to the gui.

DazTheGas

458
Mach4 General Discussion / Re: Refreshing a module
« on: June 19, 2016, 03:56:40 AM »
One of the quickest ways I have found is to go into the menu View->Load Screen and then reload your screen.

DazTheGas

459
Mach4 General Discussion / Re: Re ESS and Mach 4
« on: June 16, 2016, 02:10:50 PM »
My best advise is to post on the warp9 forum http://warp9td.com/index.php/kunena/index i`m sure there will be many others who have the same bob as you and can advise on their setup. Although the newest plugin is in beta it still has all the functionality of the old plugin except probing.

DazTheGas

460
Mach4 General Discussion / Re: Re ESS and Mach 4
« on: June 16, 2016, 01:04:30 PM »
The ESS doesnt actually need the chargepump as its not using an old printer port, if your bob will allow it then i would dissable the chargepump. The chargepump was origionaly just to stop eradic behaviour from the printer port during bootup, this is not a problem with ethernet.

DazTheGas