Create a RecipePlus button
Use the
RecipePlus
button to initiate RecipePlus operations at runtime. Each button can perform one of the following operations:- Downloadwrites the ingredient values in the data set of the recipe unit currently selected in the selector object to the tags in the unit's tag set
- Uploadreads the tag values in the tag set of the recipe unit currently selected in the selector object and saves those values to the unit's data set
- Upload and createreads the tag values in the tag set of the unit currently selected in the selector object and creates a new recipe unit by writing those values to a new data set
- Savesaves the values in a recipe table object to a recipe file
- Restoreloads the values from a recipe unit to a recipe table object
- Deletedeletes the recipe unit currently selected in the selector object
- Renamerenames the recipe unit currently selected in the selector object
The buttons work with the RecipePlus selector object and the RecipePlus table object. Download, upload, upload and create, delete, and rename operations work on the recipe currently selected in the selector. Restore and save operations work with the RecipePlus table object.
Create a separate button on the graphic display for each operation.
TIP:
If a display containing a RecipePlus table is closed while the recipe system is restoring a recipe, the restore operation will be canceled.
To create a RecipePlus button object
- In theGraphicseditor, selectObjects > RecipePlus > RecipePlus Buttonor drag
from the toolbox.
- Drag the mouse to draw and position a rectangle of the general size and in the general location that you want the button to be.
- Double-click the button to open itsPropertiesdialog box.
- In thePropertiestabs, specify:
- How the button looks
- Whether it beeps when pressed
- What action it will perform
- The caption or image to use on the button
- Its common properties
Provide Feedback