Older Newer
Mon, 20 Jul 2015 10:58:45 . . . . SyneRyder [Adding an example]


Changes by last author:

Added:
= startSetPixel =

== Syntax ==

:void startSetPixel(int ctl)

== Arguments ==

:ctl

::The control number of the Ownerdraw control on which you want to draw.

== Description ==

:Call startSetPixel before drawing on an OWNERDRAW control to select which control you will be drawing on. Use setPixel to change individual pixels or any of the Control drawing functions to draw to the control. After finished drawing, you must call endSetPixel to display the drawn control to the screen.

== Example ==

<code>

ctl(1): OWNERDRAW(drawitem), pos=(300,50), size=(100, 100)

startSetPixel(1);

setRectFill(10,20,30,40,RGB(255,0,0));

endSetPixel(1);

</code>

== Also see ==

:endSetPixel, setPixel, setRectFill

== Comments ==

:Everyone can add their comments about their experiences with this function here. Tips for using it are welcome, too.