Hello Guest it is March 28, 2024, 04:30:01 PM

Author Topic: Floating MDI Panel V1  (Read 4337 times)

0 Members and 1 Guest are viewing this topic.

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Floating MDI Panel V1
« on: August 20, 2015, 10:15:32 AM »
V1 of a floating mdi panel.


:Instructions

1. Create a button and in the left up script place

Code: [Select]
local inst = mc.mcGetInstance()
package.path = mc.mcCntlGetMachDir(inst) .. "\\Profiles\\" .. mc.mcProfileGetName(inst) .. "\\Modules\\?.mcc;"
DTG_Widget = require "DTG_MDI"

DTG_Widget.LoadMDI(1000,300)

2. Copy into your profiles/modules directory the attached file DTG_MDI.mcc file.

You can change the panel size with the loadMDI function ie: DTG_Widget.LoadMDI(500,300) will give you a panel of 500 x 300 etc

New For 2022 - Instagram: dazthegas

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Floating MDI Panel V1
« Reply #1 on: August 20, 2015, 06:04:23 PM »
well done daz works good

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Floating MDI Panel V1
« Reply #2 on: August 20, 2015, 10:07:43 PM »
Big Thanks for all the info your sharing.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: Floating MDI Panel V1
« Reply #3 on: August 22, 2015, 10:45:15 AM »
As of Mach4 V2 the modules directory has now been moved out of individual profile directories and moved to the root directory. This allows all profiles to access the modules and makes it easier for installers etc, Thanks for the heads up Brett..

The DTG_MDI.mcc file will now need to be moved to root/Modules and the loader script changed to

Code: [Select]
local inst = mc.mcGetInstance()
package.path = mc.mcCntlGetMachDir(inst) .. "\\Modules\\?.mcc;"
DTG_Widget = require "DTG_MDI"

DTG_Widget.LoadMDI(1000,300)

DazTheGas
New For 2022 - Instagram: dazthegas

Offline Chaoticone

*
  • *
  •  5,624 5,624
  • Precision Chaos
    • View Profile
Re: Floating MDI Panel V1
« Reply #4 on: August 22, 2015, 11:30:24 AM »
Quote
Thanks for the heads up Brett..

No problem Daz, thanks for posting!
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!