Hi,
as you are discovering Mach4 can be customised almost endlessly.
If the MDI is executed from a button script like all Lua functions it will return. You could use the return
event to clear the MDI panel.
Craig
Hi Craig,
Yes indeed, after a shaky start I'm gradually getting to grips with it. I suppose I'm trying to run before I can walk, but that's the way I tend to do things!
I'm taking a two pronged approach for my screen so that I can have the best of both worlds with a single line MDI and a modified multi-line MDI
For the existing MDI, I'm not quite sure what you mean by your comment.
Do you mean use this script...
scr.ExecMdi('mdi1')
... to execute the MDI? What would the 'return event' be, the next line in the script? Events to me are the things in the Properties Events tab, and I can't see which of those you might mean.
I can't find any documentation about the MDI anywhere except there being an mcCntlMdiExecute() function. There are no events in the MDI Properties->Events so you can't affect the MDI there.
This is the general problem I'm finding with Mach4, there doesn't seem to be much by way of documentation so it's really hard to know how to do something simple like Clear the MDI
On other visual programming environments, things like the MDI box have a List property that you can interact with but there doesn't appear to be anything like that.
Perhaps you could direct me to any MDI documentation I'm missing or perhaps show me the code necessary to clear the MDI box?