Download CVact User Guide - John J. Jacobs
Transcript
Ui Functions UiAddRows UiAddRows Purpose Add new rows to a scroll matrix. Syntax HliStatus UiAddRows ( UiObject obj, HliSignedShort position, HliString *rowContents, HliString *rowLabels, UiColor *colors, HliSignedShort numRows) Description Position indicates the row position before which the new row will be added. 0 adds the row to the beginning, a very high number will cause the row to be added to the end of the ScrollMatrix. If rowsContents is NULL, new empty rows will be added. If colors is null, the Foreground color attribute will be used. Example The following example adds three rows to a matrix that has already been defined, created, and initialized. HliStatus status; HliSignedShort pos = 1; HliSignedShort numRows = 3; status= UiAddRows ( SampleScrollMatrix, /* object to add rows to */ pos,/* where to start adding */ NULL,/* no contents for now */ NULL,/* no rowLabels for now */ NULL,/* use default colors */ numRows);/* add this many rows */ CVact User Guide A-17