Hello Guest it is June 16, 2019, 11:15:03 AM

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

0 Members and 1 Guest are viewing this topic.

Offline DazTheGas

*
  •  746 746
  • 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

Theres always time for a choccy biccy

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,260 6,260
    • 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

*
  •  746 746
  • 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
Theres always time for a choccy biccy

Offline Chaoticone

*
  • *
  •  5,502 5,502
  • 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!