added remaining LSL2 entities
This commit is contained in:
11
LSL2/OIEVENT/OPTIONS/LISTBOX_CONFIG.ITEM.json
Normal file
11
LSL2/OIEVENT/OPTIONS/LISTBOX_CONFIG.ITEM.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"header": {
|
||||
"version": 1,
|
||||
"type": "record"
|
||||
},
|
||||
"body": {
|
||||
"record1": {
|
||||
"<1>": "declare function dialog_box, entid, repository, set_property, get_property\r\ndeclare function fieldcount, send_event\r\ndeclare subroutine make.list\r\n$insert popup_equates\r\n$insert rlist_equates\r\n\r\nPopId = entid( @appid<1>, 'POPUP', '', 'LISTBOX_CONFIG' )\r\nOverRide = ''\r\nrlist( 'SELECT LISTBOX_CONFIG BY ITEM', target_activelist$, '', '', '' )\r\nChoosenKeys = repository( \"EXECUTE\", PopId, @window, OverRide ) \r\nif ChoosenKeys then\r\n convert @vm to @fm in ChoosenKeys\r\n if fieldcount( ChoosenKeys, @fm ) > 1 then\r\n\t Void = set_property( @window, 'QBFLIST', ChoosenKeys )\r\n Void = set_property( @window, '@NoRead', 1 )\r\n .item->text = ChoosenKeys<1> \r\n\t Void = send_event( @window, 'READ' )\r\n\t Void = set_property( @window, '@NoRead', 0 )\r\n end else\r\n .item->text = ChoosenKeys\r\n\t Void = send_event( @window:'.ITEM', 'LOSTFOCUS', '' )\r\n end\r\nend\r\nRETURN 0"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user