Navigation: Interface Design Concepts >

Portable Interface Development

 

 

 

 

If you wish to make the developed interfaces portable and they require no special media outside of the standard MakerPlot-J installation, then it's a simple matter of sharing the Interface File (.mpji) with to other users or machines

If there are other files requiring being bundled with the Interface File, such as image, sound, macros, sub-folders, etc., the Interface should be saved to a directory and all additional files should be placed either in it the root or a sub-folder.

When referencing the media files, use the [path] value to point to the interface's directory for access to media, macros or for logging of data.

!runMacro [path]myMac.txt
!fileWrite [path]myData.txt
!ibtnTest.icon=[path]myImage.png
!ibtnTest.icon=[path]media\myImage.png

When images and other files are selected through the Interface Editor, all paths to the interface file will be replaced with [path]. Saving an interface will also replace all files references in that directory with [path].

To distribute, compress the folder (zip it up) and unzip for use on another computer with MakerPlot-J.

When working with images and other media, if a path NOT from the root drive is specified, such as: \icons\fan.png, the path will be assumed from the application_directory\media, accessing the installed media files. Sounds files are assumed to originate from the application_directory\media\sounds.

A full path may be used for media and files, such as:
c:\users\mine\Documents\myImage.jpg

There are 3 values to help access file paths:

[path] return the path to the current interface file opened or saved to.

[pathApp] returns the path to the running MakerPlot-J.exe

[pathMedia] returns the path the

Interface files are assumed to originate from the application_directory\interfaces unless a different path is given.

 

 

 

 

 

Copyright © 2024 SelmaWare Solutions, LLC