= setPenWidth =
Requires FM 1.0 Beta 8.5 (Nov 2007) or newer == Syntax == bool setPenWidth(int width) == Arguments == :width ::Width of the graphics pen, in device units == Returns == Always returns true. == Description == Sets the width of the graphics pen, used when drawing on an OWNERDRAW control using the startSetPixel graphics methods. == Example == <code> %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 line with a width // of 4 device units setPenWidth(4); setLine(0, 0, x, y, COLOR(RED)); // Stop drawing to the OWNERDRAW endSetPixel(3); return true; }</code> == See Also == OWNERDRAW, startSetPixel, setAngleArc, setFill, setLine, setRectFrame, endSetPixel |