Hello Guest it is March 28, 2024, 12:50:49 PM

Author Topic: Screen Set Ideas  (Read 183742 times)

0 Members and 1 Guest are viewing this topic.

Re: Screen Set Ideas
« Reply #290 on: January 24, 2015, 10:09:29 PM »
--set the font size
    UI.ToolTableDialog:SetFont(wx.wxFont(12,0,0,0)) --changes the font to 12
« Last Edit: January 24, 2015, 10:46:14 PM by Ya-Nvr-No »

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Screen Set Ideas
« Reply #291 on: January 24, 2015, 10:29:25 PM »
OK I found what I did wrong I left in the defaultsize calls and there was a conflict.

Thanks Craig I owe you one, (;-) TP
Re: Screen Set Ideas
« Reply #292 on: January 24, 2015, 10:43:21 PM »
I create a header block that has most of the variables, I can then change them all together without searching

local frameCaption = "Wire EDM Cutting Data Chart"
local framePosition = wx.wxPoint(0, 25)
local frameSize = wx.wxSize(1100, 520)
local frameMinSize = wx.wxSize(1190, 920)
local frameMaxSize = wx.wxSize(-1, 1200)

local frameAbout = "About Wire EDM Cutting Data Chart"
local frameQuit = "Quit the program"
local frameStay = "Stay on top toggle"
local frameSetStatusText = "Welcome to Wire EDM Cutting Data Chart Wizard."
local frameMessageBox = " Wire EDM Cutting Data Chart Wizard \n\n"..
                        wxlua.wxLUA_VERSION_STRING.." built with "..wx.wxVERSION_STRING.."\n\n"..
                        "Author: Ya-Nvr-No\nDate created: 12/26/2014\nDate modified: 01/18/2015\n\n"..
                        "Reads & Writes to an excel.csv file"

local CSVFilename = "C://Mach4Hobby//Wizards//CSV//wire_edm_cutting_data.csv"
« Last Edit: January 24, 2015, 10:49:58 PM by Ya-Nvr-No »

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Screen Set Ideas
« Reply #293 on: January 25, 2015, 12:18:37 AM »
Well I thought I had it BUT it will only go to about 3/4 screen size and that is it. No matter what settings I try. So there is something else hanging it up and keeping it from expanding full size.

(;-) TP

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Screen Set Ideas
« Reply #294 on: January 25, 2015, 12:51:11 AM »
OK I found the problem. FINALLY

YOU HAVE to include a MIN and a MAX size to the box. all I had was a MAX.


OK Now the next thing to try and do is to create a BUTTON to do an OPTIONAL sort of the tool table based on DIAMETER and have it Smallest to largest order.

(;-) TP

Re: Screen Set Ideas
« Reply #295 on: January 25, 2015, 06:23:43 AM »
Based on that your working with the Industrial Version, looks like your committed to learn mach4 and Lua  :D

I'd posted a sorting routine I created, thou I think you will have to sort the whole tool table data, so your not just sorting one field but an associated multi fielded array. And also check for the field value above zero or all you data will be at the bottom of the table based on smallest to largest diameter.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Screen Set Ideas
« Reply #296 on: January 25, 2015, 01:06:55 PM »
Committed like the pig for breakfast bacon. ;D

Yes I understand when I sort it sorts the whole table but based on the Diam Field and reading smallest to largest.

With a LARGE tooltable (100+) you have to be able to FIND what you need, not spend time searching for it.

Another question on BUTTONS. I can put then LEFT CENTER RIGHT but NOT all on the same line. Any ideas??

I'll look for your sort code. >:D

(;-) TP

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Screen Set Ideas
« Reply #297 on: January 25, 2015, 02:51:56 PM »
Put them in a button sizer
fun times

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Screen Set Ideas
« Reply #298 on: January 25, 2015, 04:53:09 PM »
HIYA Scott I did use a Button sizer for all three. BUT I cannot figure out to place them all on the same PLANE in the dialog box. I can do L,C,R but they end up on 3 different levels in the box.

Left
           Center  
                           RIght

Instead of

Left      Center     Right

(;-) TP
« Last Edit: January 25, 2015, 05:05:08 PM by BR549 »

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Screen Set Ideas
« Reply #299 on: January 25, 2015, 05:01:03 PM »
Here is the example code I am working with.