added remaining LSL2 entities
This commit is contained in:
11
LSL2/OIEVENT/OPTIONS/RECIPE_BROWSE.RECIPE_NO.json
Normal file
11
LSL2/OIEVENT/OPTIONS/RECIPE_BROWSE.RECIPE_NO.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"header": {
|
||||
"version": 1,
|
||||
"type": "record"
|
||||
},
|
||||
"body": {
|
||||
"record1": {
|
||||
"<1>": "declare subroutine rlist, sendmessage, update_index\r\ndeclare function entid, repository, set_property, get_property, fieldcount\r\ndeclare function getwindow, send_event\r\n$insert rlist_equates\r\n$insert popup_equates\r\nequ QbfOccurred$ to 1126\r\n\r\nStmt = 'SELECT RECIPE BY RECIPE_NAME'\r\nrlist( Stmt, target_activelist$, '', '', '' )\r\nif @reccount then\r\n PopupRec = entid( @appid<1>, 'POPUP', '', 'SHOW_RECIPES' )\r\n OverRide = ''\r\n RetVals = repository( 'EXECUTE', PopupRec, @window, OverRide )\r\n if RetVals then\r\n convert @vm to @fm in RetVals\r\n if fieldcount( RetVals, @fm ) > 1 then\r\n Void = set_property( @window, 'QBFLIST', RetVals )\r\n WndHnd = get_property( @window, 'HANDLE' )\r\n HbBar = getwindow( WndHnd, 5 )\r\n sendmessage( HbBar, QbfOccurred$, 0, 0 )\r\n Void = set_property( @window, '@NoRead', 1 ) \r\n .recipe_no->text = RetVals<1> \r\n Void = send_event( @window, 'READ' )\r\n\t Void = set_property( @window, '@NoRead', 0 )\r\n end else\r\n .recipe_no->text = RetVals\r\n Void = send_event( @window:'.RECIPE_NO', 'LOSTFOCUS', '' )\r\n end\r\n end\r\nend \r\nRETURN 0"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user