|GUI ScreenIO for Windows|
A listview-EDITED event is returned when the user modifies the data in column 1 of a record.
|In panel-3 area||Data|
|listview-REC1-COL1||The new data for column 1 of your record.|
|In panel-3 area||Data|
|listview-MAX||Maximum number records that may be passed in the listview buffer, useful for PERFORMed loops when loading records to your listview buffer.|
|listview-SCROLL-TO-KEY||Set to HIGH-VALUES.|
|listview-SEL1-KEY||The value of the invisible key column for the first selected record in the list.|
|listview-SEL2-KEY||The value of the invisible key column for the last
selected record record in the list.
Note: Since GUI ScreenIO does not presently support a selection range (multiple record selections), this field is always the same as listview-SEL1-KEY.
|listview-TOP-OF-LIST-KEY||The value of the invisible key column for the first (top) record that is visible in the listview control.|
|All other fields||Set to LOW-VALUES.|
|In panel-4 area||Data|
|listview||Number of items in the list that are selected.|
Use the value in listview-SEL1-KEY to read the record, update the record with the new value from the column 1 field in the first occurrence of the listview buffer, and then reload the updated record to the listview buffer.
GUI ScreenIO will match the key and percentage of the record in the listview buffer with the corresponding record in its cache, and will update the cache so the new data is correctly displayed in the list.
PERFORM WITH TEST AFTER
CALL 'GS' USING panel-1
You do this by "slow-clicking" the item; click on it once to select it, pause, then click again. If you enabled this in the listview properties in the editor, the runtime will open an edit control over the selected data and allow the user to enter new data.
Windows only permits a user to update column 1 of a listview; you may not update other columns.
Update the listview by loading the modified record to the listview buffer. GUI ScreenIO will match the record's key and percentage with the record in its cache, and update the record in the cache.
You cannot add or update records this way, nor can you change the key; you need to reset and reload the list to reflect additions or deletions. This is usually quite painless because of the caching algorithm.
|© 2000-2019 Norcom, all rights reserved|