= setFill =
== Syntax == int setFill(int n) == Arguments == :color ::An RGB color value to fill the OWNERDRAW canvas == Return == Returns true if the function succeeded, false otherwise == Description == Fills an OWNERDRAW control canvas with a solid color. setFill must be surrounded with startSetPixel and endSetPixel controls, which sets which control the fill command will apply to. == Example == <code> %fml ctl[0]: STANDARD, "Red", Val=200 ctl[1]: STANDARD, "Green", Val=0 ctl[2]: STANDARD, "Blue", Val=0 ctl[4]: OWNERDRAW, Size=(100,100), Color=RGB(200,0,0) OnCtl(n): { if (n >= 0 && n <= 2) { startSetPixel(4); setFill( RGB( ctl(0), ctl(1), ctl(2))); endSetPixel(0); } return false; }</code> == See Also == |