Machsupport Forum
Mach Discussion => Mach4 General Discussion => Mach4 Toolbox => Topic started by: DazTheGas 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
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
-
well done daz works good
-
Big Thanks for all the info your sharing.
-
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
local inst = mc.mcGetInstance()
package.path = mc.mcCntlGetMachDir(inst) .. "\\Modules\\?.mcc;"
DTG_Widget = require "DTG_MDI"
DTG_Widget.LoadMDI(1000,300)
DazTheGas
-
Thanks for the heads up Brett..
No problem Daz, thanks for posting!