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

Author Topic: Screen Set Ideas  (Read 183766 times)

0 Members and 1 Guest are viewing this topic.

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Screen Set Ideas
« Reply #300 on: January 25, 2015, 05:27:27 PM »
--assumes…. You have already made the three buttons below.
--Terry: Look in Mach4 Tool Box, at the “Controls Code” example for a working example.

buttonSizer = wx.wxBoxSizer(wx.wxHORIZONTAL);
buttonSizer:Add(MyLeftButton,       0, wx.wxALIGN_LEFT+wx.wxRIGHT,    10);
buttonSizer:Add(MyMiddleButton,    0, wx.wxALIGN_CENTER+wx.wxRIGHT,    40);
buttonSizer:Add(MyRightButton,    0, wx.wxALIGN_RIGHT+wx.wxLEFT,    40);

--Scott
fun times

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Screen Set Ideas
« Reply #301 on: January 25, 2015, 05:57:06 PM »
Scott what I see is two different methodologies of doing it. You showed using the BoxSizer and the example I am following (M4 Lua Examples) uses a different approach with wx.wxStdDialogButtonSizer(). I am working with a dialog BOX. Maybe the same useage ????  I do not know.

VERY confusing at this point (;-)TP

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Screen Set Ideas
« Reply #302 on: January 25, 2015, 06:05:39 PM »
Terry, in your code there are several errors (in the one you posted here at least).
uncomment the LAST line so wx can run.
your using the same resource number for all your buttons,
Your using the same varible name for all your buttons,
your re-doing the dialog button call three times and when using a
vertical box sizer that is what is giving you three different rows...

Scott
fun times

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Screen Set Ideas
« Reply #303 on: January 25, 2015, 06:44:55 PM »
Terry,

Here is your tool table, fixed (for the 3 bottom buttons aliened).
I made a few changes, so I could work with it on my screen you can fix them back.

NOTE: in the buttons all three use the "wx.wxID_OK", as a button resource, I left that unchanged,
since if you assign button resources, it breaks the standarddialogbutton call.........  must be a "thing"
with that call. This may cause you an issue when you go to hook up, your buttons to an Event....
also, I changed each button to its own variable name instead of walking over the same one each time.

Scott
fun times

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Screen Set Ideas
« Reply #304 on: January 25, 2015, 09:21:08 PM »
Thanks Scott, I was using the same button to get a feel for teh aligment process. I know how to set up the button from working with the wizards. The sizer setup is new to me thus the confusion here.

I must have loaded up the wrong file because it runs fine here. Just the buttons missaligned.

IF I can find enough examples of MACH4 stuff  to work from I will be fine for the future. IT was the same way with Mach3/CB. I learned from and used examples.

Thanks, (;-) TP

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Screen Set Ideas
« Reply #305 on: January 25, 2015, 09:45:47 PM »
Thnaks Scott, I see where I went wrong.

(;-) TP

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Screen Set Ideas
« Reply #306 on: January 31, 2015, 03:30:51 PM »
FOR SURE the WxFormBuilder is a MACH4erteer's best FRIEND,

(;-) TP

Re: Screen Set Ideas
« Reply #307 on: February 04, 2015, 08:12:45 PM »
with the newest version of mach4 (2209) scaling is now checked with a new command.
scale = mc.mcAxisGetScale(inst, axis)

I created a little test script to see.

You set an axis scale with a g51 and turn them off with a g50 (note: g50 reset all the axis scales to 1)
« Last Edit: February 04, 2015, 09:02:00 PM by Ya-Nvr-No »
Re: Screen Set Ideas
« Reply #308 on: February 09, 2015, 11:04:28 PM »
Playing around with a sketch to gcode routine, the wider the line the deeper the depth of cut. Converts pixel locations to x and y values. Would be pretty good for Watcom tablets and tracing those bar napkins. Shows the location in the status bar and only writes to the file when left button is pressed.


Thanks, Did that  ;)
« Last Edit: February 09, 2015, 11:17:13 PM by Ya-Nvr-No »

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Screen Set Ideas
« Reply #309 on: February 09, 2015, 11:10:44 PM »
I think you need to to change your handle to professor yanvrno