Navigation: Interfaces > Main Interface > Menu Options >

Edit Menu

 

 

 

 

The Edit Menu contains key operations for editing the Interface and Interface File.

 

Edit Mode: Places MPJ into Edit mode so that controls can be moved, cut, copy, pasted. Pressing F9 will enter/exit edit mode.
 

How to Cut/Copy/Paste: While in edit mode, controls can be copied by placing the mouse over it and using CTRL-C then CTRL-V to paste. CTRL-X or the Delete key will delete a control. Note that controls can be cut/pasted on Main or Child Interfaces of an existing interface, but cannot be pasted on another opened interface.
 

Edit Header Comments: This allows editing the header comments of a interface file, such as author, date, version, etc.  The Comments may be viewed via the Interfaces menu, Interface Comments choice.
 

Edit About: Interfaces have an 'About' to inform users of the interface about it. The About may be viewed via the Interfaces menu, Interface About choice.
 

Edit Shorthand List: Allows creating shorthand terms to send to represent strings of instructions from the microcontroller or the Debug/CLI. While it can be used in event code, we'd prefer developers use full code for portability. The format is:
^term^          tab-key definition (they are tab delimited).

For example:
^pcn^          !plot.drawCircle [plot.now],[plot.ch0],3,RED

This will cause the defined term to be replaced by the definition, so that the controller can simply send ^pcn^ for that action. All terms need to start and end with ^.

Another example:
^pt^    !plot.drawText [plot.now],0,
^t^    ,20,RED

Then you can send a string such as:
^pt^Hello^t^

Which equates to:
!plot.drawText [plot.now],0,Hello,20,RED

When the editing window is closed, the terms/definitions are applied and saved to the Interface's folder as shorthand.txt, which will be opened next time the interface is opened.

We have plans to implement an 'import' to bring in shorthands from other interfaces, but for now you can simply copy/paste shorthand.txt between interface folders.

Ensure each interface with unique shorthand files are in separate folders and save your interface before creating the shorthand definitions.


 

 

 

 

 

Copyright © 2024 SelmaWare Solutions, LLC