void setLine(int x1, int y1, int x2, int y2, int color)
Render a line to an OWNERDRAW control.
%fml ctl[3]: OWNERDRAW(drawitem), Pos=(300,50), Size=(100, 100) OnFilterStart: { const int x = HDBUsToPixels(getCtlPos(n, 3)); const int y = VDBUsToPixels(getCtlPos(n, 3)); // Start drawing on the OWNERDRAW startSetPixel(3); // Fill the OWNERDRAW with black pixels setFill(RGB(0,0,0)); // Draw a diagonal red line setLine(0, 0, x, y, COLOR(RED)); // Stop drawing to the OWNERDRAW endSetPixel(3); return true; }
OWNERDRAW, startSetPixel, HDBUsToPixels, VDBUsToPixels, setFill, setLine, endSetPixel