Important: The information in this document is obsolete and should not be used for new development.
SaveEntries
Saves a selection of color table entries.
pascal void SaveEntries ( CTabHandle srcTable, CTabHandle resultTable, ReqListRec *selection);
srcTable- The color table containing entries to be saved.
resultTable- The color table in which to save the entries.
selection- A pointer to a list of entries to be saved, as indicated not by a range of indexes, but by a request list structure. See
ReqListRecdata structure (page 5-5).DISCUSSION
TheSaveEntriesfunction saves a selection of color table entries from thesrcTableparameter in theresultTableparameter. You use theselectionparameter, aReqListRecdata structure (page 5-5), to enumerate the entries to be set. The values specified by theselectionparameter are offsets into aColorTabledata structure, not the contents of theColorSpec.valuefield.If an entry is not present in
srcTable, thenSaveEntriessets that position of theselectionparameter tocolReqErr, and that position ofresultTablecontains random values. IfSaveEntriescan't find one or more entries, then it posts an error code toQDError; however, for every entry in selection which is notcolReqErr, the values inresultTableare valid.SaveEntriesassumes that the color table specified by thesrcTableparameter and the request list specified by theselectionparameter have the same number of entries.
SaveEntriesoptionally allowsNULLas the value of its source color table parameter. If you supplyNULL,SaveEntriesuses the current device's color table as the source. The output ofSaveEntriesis the same as the input forRestoreEntries, except for the order.