TableAddBrushΒΆ
TableAddBrush adds a new bush (fill color) to the brush list.
- nBrushIndex = TableAddBrush(hTable, rvColorRGB)
Return Value
nBrushIndex is the index of added color.
Parameters
- hTable
Identifies the table object.
- rvColorRGB
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