TableAddBrush adds a new bush (fill color) to the brush list.
Return Value
nBrushIndex is the index of added color.
Parameters
Identifies the table object.
rvColorRGB is a vector with 3 elements:
| Wert | Bedeutung |
|---|---|
| rvColorRGB[1] | red in the range of 0 bis 255 |
| rvColorRGB[2] | green in the range of 0 bis 255 |
| rvColorRGB[3] | blue in the range of 0 bis 255 |
Example
In the following example a new brush is created, added to the brush list, and used to display the cell text of the first row.
rvColor = GetColorDialog();
index = TableAddBrush(hTable, rvColor);
rvSize = TableGetSize(hTable);
rmIndex = zeros(1, rvSize[2]) + index;
rvSel = [1, 1, rvSize[2], 1];
TableSetBrushIndex(hTable, rmIndex, rvSel);
id-849620