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
ReqListRec
data structure (page 5-5).DISCUSSION
TheSaveEntries
function saves a selection of color table entries from thesrcTable
parameter in theresultTable
parameter. You use theselection
parameter, aReqListRec
data structure (page 5-5), to enumerate the entries to be set. The values specified by theselection
parameter are offsets into aColorTable
data structure, not the contents of theColorSpec.value
field.If an entry is not present in
srcTable
, thenSaveEntries
sets that position of theselection
parameter tocolReqErr
, and that position ofresultTable
contains random values. IfSaveEntries
can't find one or more entries, then it posts an error code toQDError
; however, for every entry in selection which is notcolReqErr
, the values inresultTable
are valid.SaveEntries
assumes that the color table specified by thesrcTable
parameter and the request list specified by theselection
parameter have the same number of entries.
SaveEntries
optionally allowsNULL
as the value of its source color table parameter. If you supplyNULL
,SaveEntries
uses the current device's color table as the source. The output ofSaveEntries
is the same as the input forRestoreEntries
, except for the order.