Files
open-insight/LSL2/OIEVENT/CLICK/RECIPE2.INS_BUTTON.json
2024-03-25 15:12:53 -07:00

11 lines
1.6 KiB
JSON

{
"header": {
"version": 1,
"type": "record"
},
"body": {
"record1": {
"<1>": "declare function fieldcount, msg\r\n$insert msg_equates\r\n$insert logical\r\n\r\nRecipePromptCnt = get_property( @window, '@RecipePromptCnt' )\r\nRecipeControls = get_property( @window, '@RecipeControls' )\r\nRecipeDataOnWindow = get_property( RecipeControls, 'INVALUE' )\r\nconvert @rm to @vm in RecipeDataOnWindow\r\nif RecipeDataOnWindow = str( @vm, RecipePromptCnt-1 ) then\r\n MsgInfo = ''\r\n MsgInfo<mtext$> = 'You cannot have a blank multi layer recipe...'\r\n MsgInfo<micon$> = 'H'\r\n Void = msg( '', MsgInfo )\r\n return 0\r\nend else\r\n\tCurLayerNo = get_property( @window, '@CurLayer' )\r\n\tAllLayers = get_property( @window, '@RecipeInfo' )\r\n\tAllLayers = fieldstore( AllLayers, char(248), CurLayerNo, 1, char(243):RecipeDataOnWindow )\r\n\tconvert char(243) to char(248) in AllLayers\r\n\tVoid = set_property( @window, '@RecipeInfo', AllLayers )\r\n\t* now display the next recipe layer\r\n\tNewLayerData = field( AllLayers, char(248), CurLayerNo )\r\n\t*\r\n\tValueCnt = fieldcount( NewLayerData, @vm )\r\n\t* so set_property does not propagate\r\n\tif ValueCnt < RecipePromptCnt then\r\n\t NewLayerData := str( @vm, RecipePromptCnt-ValueCnt-1 )\r\n\tend\r\n\tconvert @vm to @rm in NewLayerData\r\n\tVoid = set_property( RecipeControls, 'INVALUE', NewLayerData )\r\n\tNumLayers = fieldcount( AllLayers, char(248) ) \r\n .layer_desc->text = CurLayerNo:' of ':NumLayers\r\n void = set_property( @window:'.EPI_DOPANT', 'FOCUS', 1 ) \r\nend\r\nRETURN 0"
}
}
}