Interface files (.mpji) hold the instructions to create the interface and may also have constant drawings instructions to draw those elements when opened.
The interface files may be opened and carefully edited with a plain-text editor such as NotePad in Windows. DO NOT EDIT with a word processor.
Through the Main Interface, the code "Comments" header and an "About" may be generated using the Edit menu of MPJ. These may be viewed with the "Interface" menu of MakerPlot. The "About" may also be opened using: !showAbout
Opening the Selection Interface file, index.mpji with notepad shows the following:
Note the header comments were created using the Main Interface's Edit-->Edit Comments as discussed.
When an Interface is opened, the contents of the file are placed in the processing queue for action.
There are a few unique instructions and property settings placed in the Interface File:
!replaceValuesOff=1 // disables replacing values, properties and math operations
!hide // Won't show controls being created
(Interface code)
!replaceValuesOff=0 // re-enables replacing values, properties and math operations
!show // makes the hidden controls hidden during build visible
!runLoad // runs all interface and control <load> events
An Interface may be opened in code using: !open interfaceName // Inside the MPJ Interface Directory
!open myInterface/myInterface // Below the MPJ Interface directory
!open c:/myInterface/MyInterface // Outside the MPJ Interface directory !open [path]myNextInterface // An interface inside the folder of the calling interface
A New Interface may be started using: !newInterface
|